mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Fixed SOCKET_WRITE() when blocked.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@203 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -34,7 +34,10 @@
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if !defined(WIN32)
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#include "axhttp.h"
|
||||
|
||||
struct serverstruct *servers;
|
||||
@ -614,7 +617,9 @@ void removeconnection(struct connstruct *cn)
|
||||
cn->ssl = NULL;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
shutdown(cn->networkdesc, SHUT_WR);
|
||||
#endif
|
||||
SOCKET_CLOSE(cn->networkdesc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user