mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
shutdown socket before closing to avoid blocking
This commit is contained in:
1 parent
845330eefa
commit
c41a16d4da
1 file changed
+1
-1
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user