[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient PgDbClient.cs,1.4
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos Guzm?n ?l. <car...@us...> - 2004-05-06 08:17:24
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31977 Modified Files: PgDbClient.cs Log Message: 2004-05-06 Carlos Guzman Alvarez <car...@te...> * PostgreSql/Data/PgSqlClient/NPgClient/PgDbClient.cs: - Changes for patch (#948340) ( Disable the nagle algorithm on socket setup ) Index: PgDbClient.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** PgDbClient.cs 10 Apr 2004 20:16:07 -0000 1.47 --- PgDbClient.cs 6 May 2004 08:17:16 -0000 1.48 *************** *** 861,864 **** --- 861,874 ---- SocketOptionName.SendBuffer, settings.PacketSize); + + #if (!LINUX) + // Disables the Nagle algorithm for send coalescing. + // This seems to be not supported in Linux (using mono::) + this.socket.SetSocketOption( + SocketOptionLevel.Socket, + SocketOptionName.NoDelay, + 1); + #endif + // Make the socket to connect to the Server this.socket.Connect(EPhost); |