Why tcp_recv_bufsize also acts as tcp_send_bufsize?

2012-12-13 Thread Tianyin Xu
Hi, Squid developers, I'm using squid-3.1.19. I want to discuss the configuration directive tcp_recv_bufsize. I'm confused when seeing the code: /* src/comm.cc */ 1788 static void 1789 commSetTcpRcvbuf(int fd, int size) 1790 { 1791 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char *) size,

Re: Why tcp_recv_bufsize also acts as tcp_send_bufsize?

2012-12-13 Thread Henrik Nordström
tor 2012-12-13 klockan 00:45 -0800 skrev Tianyin Xu: Accoding to the code, when setting tcp_recv_bufsize, Squid also set the same amount as tcp_send_bufsize? And the send log printing message (line# 1794) seems problematic because the failure is caused by setting tcp_send_bufsize (the flag is