Commit c48d9207 authored by Juergen Kosel's avatar Juergen Kosel

Do not reduce the tcp send buffer size for production code

Signed-off-by: 's avatarJuergen Kosel <juergen.kosel@softing.com>
parent d3c6d143
...@@ -685,7 +685,7 @@ int Socket_new(char* addr, int port, int* sock) ...@@ -685,7 +685,7 @@ int Socket_new(char* addr, int port, int* sock)
if (setsockopt(*sock, SOL_SOCKET, SO_NOSIGPIPE, (void*)&opt, sizeof(opt)) != 0) if (setsockopt(*sock, SOL_SOCKET, SO_NOSIGPIPE, (void*)&opt, sizeof(opt)) != 0)
Log(LOG_ERROR, -1, "Could not set SO_NOSIGPIPE for socket %d", *sock); Log(LOG_ERROR, -1, "Could not set SO_NOSIGPIPE for socket %d", *sock);
#endif #endif
#if 1 #if defined(TESTING)
{ {
int optsend = 2 * 1440; int optsend = 2 * 1440;
if (setsockopt(*sock, SOL_SOCKET, SO_SNDBUF, (void*)&optsend, sizeof(optsend)) != 0) if (setsockopt(*sock, SOL_SOCKET, SO_SNDBUF, (void*)&optsend, sizeof(optsend)) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment