tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: generating ECONNRESET with no syscall?



On 4/20/16 7:52 AM, Edgar Fuß wrote:
> Is it, for a user process, legally possible to put one of its socket
> into a state where trying to connect to it returns ECONNRESET without
> the process issuing any syscalls during the connection attempt?
>
> We have two production web servers, both running lighttpd, the first
> still running on NetBSD 4.0.1, the second on 6.1. Occasioally, on the
> second, you get Connection Reset by Peer (NOT Connection Refused)
> on the HTTP port. ktrace-ng the lighttpd process reveals close to
> no activity. Restarting lighttpd instantly resolves the problem. Is
> there any way the lighttpd process may have put its socket into this
> condition or must this be a kernel issue?

Hi, Edgar.

What version of lighttpd is it?  Is there a firewall on the server or
elsewhere that could be unexpectedly sending the TCP reset?  Is CGI or
similar involved, or does it happen even when serving static content?

Regards,

Lewis


Home | Main Index | Thread Index | Old Index