mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 01:37:14 +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>
|
#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…
x
Reference in New Issue
Block a user