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

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

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;

View File

@ -145,7 +145,7 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
scgi_disconnect(&handle);
if (len < 0) {
if (len < 0 && (!txt || !strlen(txt))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "DEBUG:\nURL: %s Connection Read Failed: [%s]\n", binding->url, handle.err);
goto end;
}