Ticket #14658: patch-base-2.2b1-smt-smt_socket_request.c.diff
File patch-base-2.2b1-smt-smt_socket_request.c.diff, 2.0 KB (added by Jacobus.Geluk@…, 17 years ago) |
---|
-
../base-2.2b1/smt/smt_socket_request.c
old new 2528 2528 // Should not occur, but handle anyway just in case 2529 2529 if (desc->rtnevents & APR_POLLERR) { 2530 2530 // If APR_POLLERR is set, get error code. 2531 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);2531 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 2532 2532 // Some implementations return error from getsockopt instead 2533 2533 if (status != APR_SUCCESS && !error) 2534 2534 error = status; … … 2547 2547 case SOCK_CONNECT: 2548 2548 // Always check error code for connect, since some implementations 2549 2549 // return APR_POLLIN on error. 2550 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);2550 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 2551 2551 // Some implementations return error from getsockopt instead 2552 2552 if (status != APR_SUCCESS && !error) 2553 2553 error = status; … … 2598 2598 } 2599 2599 else { 2600 2600 // If APR_POLLERR is set, get error code. 2601 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);2601 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 2602 2602 // Some implementations return error from getsockopt instead 2603 2603 if (status != APR_SUCCESS && !error) 2604 2604 error = status;