[Chilli] CoovaChilli (Connection reset by peer) redir_read(0) failed!
steffen.dettmer at nomadrail.com
Wed Apr 3 09:55:42 UTC 2013
> Apr 3 08:29:31 captive coova-chilli: redir.c: 2020: 104 (Connection reset by peer) redir_read(0) failed!
"Connection reset by peer" is often seen when a TCP communication partner ("peer") resets an initiated or established TCP connection, for example if a TCP packet was received, but the peer has no matching socket associated (could be caused by change of dynamic IP or closing a socket after an error). As a result, a locally invoked TCP receive (for example, by read(2), which could be "wrapped" by a higher-level reading function) will return -1 and set ERRNO to ECONNRESET, which on Linux might equal to 104.
Sometimes it helps to see the RST packets, for example using:
tcpdump -n -v 'tcp[tcpflags] & (tcp-rst) != 0'
or for older versions:
tcpdump -n -v 'tcp & 4 != 0'
(see also http://www.ihtb.org/security/tcpdump-explained.txt)
More information about the Chilli