mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
shutdown socket before closing to avoid blocking
This commit is contained in:
parent
845330eefa
commit
c41a16d4da
@ -51,7 +51,7 @@
|
||||
|
||||
#include <esl.h>
|
||||
#ifndef WIN32
|
||||
#define closesocket(x) close(x)
|
||||
#define closesocket(x) shutdown(x, 2); close(x)
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user