scgi updates

This commit is contained in:
Anthony Minessale
2012-05-23 13:12:32 -05:00
parent 4b2e7fc1f2
commit 0a70ea3e09
3 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ SCGI_DECLARE(scgi_status_t) scgi_bind(const char *host, scgi_port_t port, scgi_s
SCGI_DECLARE(scgi_status_t) scgi_accept(scgi_socket_t server_sock, scgi_socket_t *client_sock_p, struct sockaddr_in *echoClntAddr);
#ifndef WIN32
#define closesocket(x) shutdown(x, 2); close(x)
#define closesocket(x) close(x)
#endif
#ifdef __cplusplus
-4
View File
@@ -384,10 +384,6 @@ SCGI_DECLARE(scgi_status_t) scgi_disconnect(scgi_handle_t *handle)
return SCGI_FAIL;
}
if (!handle->sock) {
abort();
}
if (handle->sock != SCGI_SOCK_INVALID) {
closesocket(handle->sock);
handle->sock = SCGI_SOCK_INVALID;