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 2001/07/10 19:19:03 UTC
cvs commit: apr/network_io/unix sockets.c
trawick 01/07/10 10:19:02
Modified: network_io/unix sockets.c
Log:
get rid of some unnecessary checking of apr_socket_t in apr_connect()
if the fd is bad, the kernel is sure to let us know
we no longer care about remote addr field at this point
Revision Changes Path
1.76 +0 -4 apr/network_io/unix/sockets.c
Index: sockets.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- sockets.c 2001/07/10 15:01:38 1.75
+++ sockets.c 2001/07/10 17:18:55 1.76
@@ -259,10 +259,6 @@
{
int rc;
- if ((sock->socketdes < 0) || (!sock->remote_addr)) {
- return APR_ENOTSOCK;
- }
-
do {
rc = connect(sock->socketdes,
(const struct sockaddr *)&sa->sa.sin,