Commit ba6db03c authored by Daniel Veillard's avatar Daniel Veillard

protected an use of EAGAIN, Brian Stafford Daniel

* nanohttp.c: protected an use of EAGAIN, Brian Stafford
Daniel
parent 57905379
Tue Jul 31 18:24:34 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* nanohttp.c: protected an use of EAGAIN, Brian Stafford
Tue Jul 31 17:48:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> Tue Jul 31 17:48:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* include/libxml/xmlIO.h: apply change to close #58141 * include/libxml/xmlIO.h: apply change to close #58141
......
...@@ -415,7 +415,9 @@ xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt, const char * xmt_ptr, int outlen) { ...@@ -415,7 +415,9 @@ xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt, const char * xmt_ptr, int outlen) {
if (nsent>0) if (nsent>0)
total_sent += nsent; total_sent += nsent;
else if ( ( nsent == -1 ) && else if ( ( nsent == -1 ) &&
#if defined(EAGAIN) && EAGAIN != EWOULDBLOCK
( socket_errno( ) != EAGAIN ) && ( socket_errno( ) != EAGAIN ) &&
#endif
( socket_errno( ) != EWOULDBLOCK ) ) { ( socket_errno( ) != EWOULDBLOCK ) ) {
xmlGenericError( xmlGenericErrorContext, xmlGenericError( xmlGenericErrorContext,
"xmlNanoHTTPSend error: %s", "xmlNanoHTTPSend error: %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment