diff options
-rw-r--r-- | nanohttp/nanohttp-server.c | 4 | ||||
-rw-r--r-- | nanohttp/nanohttp-ssl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index 907d80d..32902ee 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.58 2006/05/01 17:51:50 mrcsys Exp $ +* $Id: nanohttp-server.c,v 1.59 2006/05/15 13:54:25 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -646,7 +646,7 @@ httpd_session_main(void *data) done = 0; while (!done) { - log_verbose2("starting HTTP request on socket %d", conn->sock); + log_verbose3("starting HTTP request on socket %p (%d)", conn->sock, conn->sock.sock); /* XXX: only used in WSAreaper */ conn->atime = time(NULL); diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c index 34c00c9..5a08486 100644 --- a/nanohttp/nanohttp-ssl.c +++ b/nanohttp/nanohttp-ssl.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-ssl.c,v 1.26 2006/05/15 06:40:47 m0gg Exp $ +* $Id: nanohttp-ssl.c,v 1.27 2006/05/15 13:54:25 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2001-2005 Rochester Institute of Technology @@ -524,7 +524,7 @@ hssl_read(hsocket_t * sock, char *buf, size_t len, size_t * received) if (sock->ssl) { - if ((count = SSL_read(sock->ssl, buf, len)) == -1) + if ((count = SSL_read(sock->ssl, buf, len)) < 1) return herror_new("SSL_read", HSOCKET_ERROR_RECEIVE, "SSL_read failed (%s)", _hssl_get_error(sock->ssl, count)); |