Merge pull request #391 from tomtor/freebsd

Fix a debug check on FreeBSD and probably Linux for HTTP connection termination.
This commit is contained in:
Luka Krajger 2016-09-26 12:37:44 +02:00 committed by GitHub
commit 8e28bb4c2a

View file

@ -430,7 +430,7 @@ void destroyHttpConnection(struct HttpConnection *http) {
http->peerName ? http->peerName : "???", http->peerPort); http->peerName ? http->peerName : "???", http->peerPort);
} }
httpShutdown(http, http->closed ? SHUT_WR : SHUT_RDWR); httpShutdown(http, http->closed ? SHUT_WR : SHUT_RDWR);
dcheck(!close(http->fd)); dcheck(!close(http->fd) || errno != EBADF);
free(http->peerName); free(http->peerName);
free(http->url); free(http->url);
free(http->method); free(http->method);