Hi Phillipe,<div><br></div><div>    you&#39;ll need to add TCP_CORK to the list of known options in platforms/unix/plugins/SocketPlugin/sqUnixSocket.c<br><br><div class="gmail_quote">On Sat, Feb 11, 2012 at 1:51 PM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:kustos@gmx.net">kustos@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I had this crazy idea, what instead of buffering at the application level I use the native buffer of the socket? I would be doing more or less this:<br>
<br>
set TCP_CORK to 1<br>
set TCP_NODELAY to 0<br>
<br>
do individual writes<br>
<br>
set TCP_CORK to 0<br>
set TCP_NODELAY to 1<br>
<br>
do last write<br>
<br>
goto 1<br>
<br>
(use TCP_NOWAIT and TCP_NOPUSH on BSD/MacOS)<br>
<br>
I hacked something together and tried to push it through some benchmarks but the SocketPlugin was not very impressed:<br>
<br>
SocketPlugin: ignoring unknown option &#39;TCP_CORK&#39;<br>
<br>
This is on Linux with Cog.<br>
<br>
Cheers<br><font color="#888888">
Philippe<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>
</div>