MCPcopy Create free account
hub / github.com/apache/httpd / add_pollset

Function add_pollset

modules/proxy/proxy_util.c:5519–5541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5517}
5518
5519static void add_pollset(apr_pollset_t *pollset, apr_pollfd_t *pfd,
5520 apr_int16_t events)
5521{
5522 apr_status_t rv;
5523
5524 AP_DEBUG_ASSERT((pfd->reqevents & events) == 0);
5525
5526 if (pfd->reqevents) {
5527 rv = apr_pollset_remove(pollset, pfd);
5528 if (rv != APR_SUCCESS) {
5529 AP_DEBUG_ASSERT(1);
5530 }
5531 }
5532
5533 if (events & APR_POLLIN) {
5534 events |= APR_POLLHUP;
5535 }
5536 pfd->reqevents |= events | APR_POLLERR;
5537 rv = apr_pollset_add(pollset, pfd);
5538 if (rv != APR_SUCCESS) {
5539 AP_DEBUG_ASSERT(1);
5540 }
5541}
5542
5543static void del_pollset(apr_pollset_t *pollset, apr_pollfd_t *pfd,
5544 apr_int16_t events)

Callers 2

proxy_tunnel_forwardFunction · 0.85
ap_proxy_tunnel_runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected