Hi,
I'm using the following lines to disable Nagle, but it's not working:
FConnection.Connection.Connect(FConnection.Host, FConnection.Port);
FConnection.Connected:=true;
NoDelay:=True;
setsockopt(FConnection.Connection.Socket,IPPROTO_TCP,TCP_NODELAY,@NoDelay,SizeOf(NoDelay));
FConnection is my object and Connection is a TTCPBlockSocket. I send and
receive small packages, so I need to disable Nagle. I made a test
program to send ands and receive 100 packages, and it takes 20 seconds
on Windows XP. On Linux using Wine to execute the same program, it takes
1 second or less.
I'm porting this project ( www.sourceforge.net/projects/mlink ) from
Indy to Synapse and I have had the same problem using Indy.
I can post or send the full sources, if anyone is interested.
Thanks,
Roger.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public