Ticket #16275: patch-base-2.2b1-smt-smt_socket_request.icl.diff
File patch-base-2.2b1-smt-smt_socket_request.icl.diff, 2.0 KB (added by Jacobus.Geluk@…, 16 years ago) |
---|
-
../base-2.2b1/smt/smt_socket_request.icl
old new 1308 1308 // Should not occur, but handle anyway just in case 1309 1309 if (desc->rtnevents & APR_POLLERR) { 1310 1310 // If APR_POLLERR is set, get error code. 1311 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);1311 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 1312 1312 // Some implementations return error from getsockopt instead 1313 1313 if (status != APR_SUCCESS && !error) 1314 1314 error = status; … … 1327 1327 case SOCK_CONNECT: 1328 1328 // Always check error code for connect, since some implementations 1329 1329 // return APR_POLLIN on error. 1330 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);1330 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 1331 1331 // Some implementations return error from getsockopt instead 1332 1332 if (status != APR_SUCCESS && !error) 1333 1333 error = status; … … 1378 1378 } 1379 1379 else { 1380 1380 // If APR_POLLERR is set, get error code. 1381 status = apr_socket_opt_get (socket->pollfd.desc.s, APR_SO_ERROR, &error);1381 status = apr_socket_opt_get (socket->pollfd.desc.s, 32, &error); 1382 1382 // Some implementations return error from getsockopt instead 1383 1383 if (status != APR_SUCCESS && !error) 1384 1384 error = status;