Changeset 1405
- Timestamp:
- 11/10/2006 03:19:28 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/mod_proxy_backend_fastcgi.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mod_proxy_backend_fastcgi.c
r1404 r1405 8 8 #include "log.h" 9 9 #include "fastcgi.h" 10 11 12 /** 13 * we aren't supporting multiplexing 14 * 15 * use always the same request-id 16 */ 17 #define PROXY_FASTCGI_REQUEST_ID 1 10 18 11 19 int proxy_fastcgi_get_env_fastcgi(server *srv, connection *con, plugin_data *p, proxy_session *sess) { … … 261 269 /* send FCGI_BEGIN_REQUEST */ 262 270 263 fcgi_header(&(beginRecord.header), FCGI_BEGIN_REQUEST, FCGI_NULL_REQUEST_ID, sizeof(beginRecord.body), 0);271 fcgi_header(&(beginRecord.header), FCGI_BEGIN_REQUEST, PROXY_FASTCGI_REQUEST_ID, sizeof(beginRecord.body), 0); 264 272 beginRecord.body.roleB0 = FCGI_RESPONDER; 265 273 beginRecord.body.roleB1 = 0; … … 288 296 } 289 297 290 fcgi_header(&(header), FCGI_PARAMS, FCGI_NULL_REQUEST_ID, packet->used, 0);298 fcgi_header(&(header), FCGI_PARAMS, PROXY_FASTCGI_REQUEST_ID, packet->used, 0); 291 299 buffer_append_memory(b, (const char *)&header, sizeof(header)); 292 300 buffer_append_memory(b, (const char *)packet->ptr, packet->used); … … 296 304 buffer_free(packet); 297 305 298 fcgi_header(&(header), FCGI_PARAMS, FCGI_NULL_REQUEST_ID, 0, 0);306 fcgi_header(&(header), FCGI_PARAMS, PROXY_FASTCGI_REQUEST_ID, 0, 0); 299 307 buffer_append_memory(b, (const char *)&header, sizeof(header)); 300 308 b->used++; … … 449 457 */ 450 458 b = chunkqueue_get_append_buffer(out); 451 fcgi_header(&(header), FCGI_STDIN, FCGI_NULL_REQUEST_ID, weWant, 0);459 fcgi_header(&(header), FCGI_STDIN, PROXY_FASTCGI_REQUEST_ID, weWant, 0); 452 460 buffer_copy_memory(b, (const char *)&header, sizeof(header) + 1); 453 461 out->bytes_in += sizeof(header); … … 524 532 b = chunkqueue_get_append_buffer(out); 525 533 /* terminate STDIN */ 526 fcgi_header(&(header), FCGI_STDIN, FCGI_NULL_REQUEST_ID, 0, 0);534 fcgi_header(&(header), FCGI_STDIN, PROXY_FASTCGI_REQUEST_ID, 0, 0); 527 535 buffer_copy_memory(b, (const char *)&header, sizeof(header) + 1); 528 536

