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

Function send_begin_request

modules/proxy/mod_proxy_fcgi.c:321–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321static apr_status_t send_begin_request(proxy_conn_rec *conn,
322 apr_uint16_t request_id)
323{
324 struct iovec vec[2];
325 ap_fcgi_header header;
326 unsigned char farray[AP_FCGI_HEADER_LEN];
327 ap_fcgi_begin_request_body brb;
328 unsigned char abrb[AP_FCGI_HEADER_LEN];
329 apr_size_t len;
330
331 ap_fcgi_fill_in_header(&header, AP_FCGI_BEGIN_REQUEST, request_id,
332 sizeof(abrb), 0);
333
334 ap_fcgi_fill_in_request_body(&brb, AP_FCGI_RESPONDER,
335 ap_proxy_connection_reusable(conn)
336 ? AP_FCGI_KEEP_CONN : 0);
337
338 ap_fcgi_header_to_array(&header, farray);
339 ap_fcgi_begin_request_body_to_array(&brb, abrb);
340
341 vec[0].iov_base = (void *)farray;
342 vec[0].iov_len = sizeof(farray);
343 vec[1].iov_base = (void *)abrb;
344 vec[1].iov_len = sizeof(abrb);
345
346 return send_data(conn, vec, 2, &len);
347}
348
349static apr_status_t send_environment(proxy_conn_rec *conn, request_rec *r,
350 apr_pool_t *temp_pool,

Callers 1

fcgi_do_requestFunction · 0.70

Calls 6

ap_fcgi_fill_in_headerFunction · 0.85
ap_fcgi_header_to_arrayFunction · 0.85
send_dataFunction · 0.85

Tested by

no test coverage detected