Fix a bug where a socket could be closed twice.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 26 Apr 2014 16:45:47 +0000 (18:45 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 26 Apr 2014 16:45:47 +0000 (18:45 +0200)
commita0c402a1dd71070392848b7510420f2ee9d6bd52
treee234287d4964bdcf4aee30168c8f3fd20ba9e62b
parent12e46fa2d0a146685634811857d1d29c361c59e7
Fix a bug where a socket could be closed twice.

This would only happen if a HTTP input that wasn't fully setup yet
was no longer in use after an reload. This would normally manifest itself as
a “close(): Bad file descriptor”, but could also end up closing an arbitrary
descriptor, causing various sorts of havoc.
httpinput.cpp