You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2003/12/16 19:24:03 UTC
cvs commit: apr/network_io/unix sockets.c
trawick 2003/12/16 10:24:03
Modified: . CHANGES
network_io/unix sockets.c
Log:
apr_socket_connect(): allow app to make subsequent call on
non-blocking socket. (and find it is connected, not get unexpected
EISCONN retval)
Revision Changes Path
1.447 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.446
retrieving revision 1.447
diff -u -r1.446 -r1.447
--- CHANGES 5 Dec 2003 01:02:31 -0000 1.446
+++ CHANGES 16 Dec 2003 18:24:03 -0000 1.447
@@ -100,6 +100,9 @@
Changes with APR 0.9.5
+ *) apr_socket_connect(): allow app to make subsequent call on
+ non-blocking socket. [Jeff Trawick]
+
*) Add apr_os_pipe_put_ex(), which allows the caller to tell APR
to establish a cleanup on the pipe. [Jeff Trawick, Brad Nicholes]
1.118 +1 -1 apr/network_io/unix/sockets.c
Index: sockets.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- sockets.c 30 Nov 2003 16:47:29 -0000 1.117
+++ sockets.c 16 Dec 2003 18:24:03 -0000 1.118
@@ -294,7 +294,7 @@
#endif /* SO_ERROR */
}
- if (rc == -1) {
+ if (rc == -1 && errno != EISCONN) {
return errno;
}