comparison src/http/ngx_http_event.c @ 23:f540a63026c9

nginx-0.0.1-2002-12-06-19:32:33 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 06 Dec 2002 16:32:33 +0000
parents aa3b53e74728
children 77c7629a2627
comparison
equal deleted inserted replaced
22:aa3b53e74728 23:f540a63026c9
321 321
322 return NGX_OK; 322 return NGX_OK;
323 } 323 }
324 324
325 if (r->header_in->last.mem >= r->header_in->end) { 325 if (r->header_in->last.mem >= r->header_in->end) {
326 rc == NGX_HTTP_PARSE_TOO_LONG_URI; 326 rc = NGX_HTTP_PARSE_TOO_LONG_URI;
327 327
328 } else if (rc == NGX_AGAIN) { 328 } else if (rc == NGX_AGAIN) {
329 return NGX_AGAIN; 329 return NGX_AGAIN;
330 } 330 }
331 331
493 r->headers_in.user_agent->key.data _ 493 r->headers_in.user_agent->key.data _
494 r->headers_in.user_agent->value.data); 494 r->headers_in.user_agent->value.data);
495 495
496 rc = ngx_http_handler(r); 496 rc = ngx_http_handler(r);
497 497
498 /* handler is still busy */
498 if (rc == NGX_WAITING) 499 if (rc == NGX_WAITING)
499 return rc; 500 return rc;
500 501
501 /* transfer not completed */ 502 /* handler has done its work but transfer is not completed */
502 if (rc == NGX_AGAIN) { 503 if (rc == NGX_AGAIN) {
503 #if (HAVE_CLEAR_EVENT) 504 #if (HAVE_CLEAR_EVENT)
504 if (ngx_add_event(r->connection->write, NGX_WRITE_EVENT, 505 if (ngx_add_event(r->connection->write, NGX_WRITE_EVENT,
505 NGX_CLEAR_EVENT) == NGX_ERROR) { 506 NGX_CLEAR_EVENT) == NGX_ERROR) {
506 #else 507 #else
565 r->lingering_close = 1; 566 r->lingering_close = 1;
566 567
567 r->connection->read->event_handler = ngx_http_block_read; 568 r->connection->read->event_handler = ngx_http_block_read;
568 569
569 /* STUB: should find handler */ 570 /* STUB: should find handler */
570 #if 1 571 #if 0
571 r->filter = NGX_HTTP_FILTER_NEED_IN_MEMORY; 572 r->filter = NGX_HTTP_FILTER_NEED_IN_MEMORY;
572 #endif 573 #endif
573 rc = ngx_http_set_default_handler(r); 574 rc = ngx_http_set_default_handler(r);
574 575
575 if (rc >= NGX_HTTP_SPECIAL_RESPONSE) 576 if (rc >= NGX_HTTP_SPECIAL_RESPONSE)