- Large resync between W3C and Gnome tree
- configure.in: 2.1.0 prerelease
- example/Makefile.am example/gjobread.c tree.h: work on
libxml1 libxml2 convergence.
- nanoftp, nanohttp.c: fixed stalled connections probs
- HTMLtree.c SAX.c : support for attribute without values in
HTML for andersca
- valid.c: Fixed most validation + namespace problems
- HTMLparser.c: start document callback for andersca
- debugXML.c xpath.c: lots of XPath fixups from Picdar Technology
- parser.h, SAX.c: serious speed improvement for large
CDATA blocks
- encoding.[ch] xmlIO.[ch]: Improved seriously saving to
different encoding
- config.h.in parser.c xmllint.c: added xmlCheckVersion()
and the LIBXML_TEST_VERSION macro
Daniel
diff --git a/nanohttp.c b/nanohttp.c
index a94d6bb..33d0b7a 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -654,6 +654,23 @@
close(s);
return(-1);
}
+
+ if ( FD_ISSET(s, &wfd) ) {
+ socklen_t len;
+ len = sizeof(status);
+ if (getsockopt(s, SOL_SOCKET, SO_ERROR, &status, &len) < 0 ) {
+ /* Solaris error code */
+ return (-1);
+ }
+ if ( status ) {
+ close (s);
+ errno = status;
+ return (-1);
+ }
+ } else {
+ /* pbm */
+ return (-1);
+ }
return(s);
}