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:
commit
8e28bb4c2a
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ void destroyHttpConnection(struct HttpConnection *http) {
|
|||
http->peerName ? http->peerName : "???", http->peerPort);
|
||||
}
|
||||
httpShutdown(http, http->closed ? SHUT_WR : SHUT_RDWR);
|
||||
dcheck(!close(http->fd));
|
||||
dcheck(!close(http->fd) || errno != EBADF);
|
||||
free(http->peerName);
|
||||
free(http->url);
|
||||
free(http->method);
|
||||
|
|
Loading…
Reference in a new issue