In my application, I found my send()
call on a TCP connection is blocked occasionally. And whenever this happens, the Recv-Q of the TCP connection is very high from netstat
output:
tcp 314238 0 10.8.8.21:47302 10.8.8.11:5672 ESTABLISHED
tcp 313276 0 10.8.8.21:47294 10.8.8.11:5672 ESTABLISHED
What could possibly cause the recv buffer of a TCP connection to be filled up? And how does it cause my send()
call to hang indefinitely?
p.s. This may or may not be relevant, this TCP connection is between my app and a RabbitMQ server.