In the last episode (Oct 08), Philip Brown said:
> So my next question is, how do I go about preventing Nagle at both
> ends? I'm now running the standard binary of mysql 3.23.43 on the SCO
> OpenServer, and I'm using the latest (3.23.43) libmysql.dll on the
> client side. My test application calls the API routines in
> libmysql.dll directly, so there should be no other layers like ODBC
> getting involved.
> MSDN tells me that Win2000 implements Nagle, but that applications
> can disable it using the TCP_NODELAY flag on the socket. Looking at
> the mysql source, it looks like this is being requested in
> libmysql.dll, but I'm not enough of a C/C++ expert to know if it is
> actually happening.
It looks like mysqld has code to disable Nagle, but I don't know when
it is triggered. You can try manually setting TCP_NODELAY on the
filedescriptor at myhandle->net.fd (where myhandle is the structure you
get from mysql_real_connect), and see if that helps.