shutdown socket before closing to avoid blocking
This commit is contained in:
parent
845330eefa
commit
c41a16d4da
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
#include <esl.h>
|
#include <esl.h>
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define closesocket(x) close(x)
|
#define closesocket(x) shutdown(x, 2); close(x)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue