Mercurial > hg > nginx-quic
comparison src/imap/ngx_imap_handler.c @ 423:fda5987b188d
nginx-0.0.10-2004-09-13-20:18:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 13 Sep 2004 16:18:09 +0000 |
parents | edaefb2a20fc |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
422:edaefb2a20fc | 423:fda5987b188d |
---|---|
56 ngx_connection_t *c; | 56 ngx_connection_t *c; |
57 ngx_imap_session_t *s; | 57 ngx_imap_session_t *s; |
58 | 58 |
59 c = rev->data; | 59 c = rev->data; |
60 | 60 |
61 /* TODO: timeout */ | 61 if (rev->timedout) { |
62 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out"); | |
63 ngx_imap_close_connection(c); | |
64 return; | |
65 } | |
62 | 66 |
63 if (!(s = ngx_pcalloc(c->pool, sizeof(ngx_imap_session_t)))) { | 67 if (!(s = ngx_pcalloc(c->pool, sizeof(ngx_imap_session_t)))) { |
64 ngx_imap_close_connection(c); | 68 ngx_imap_close_connection(c); |
65 return; | 69 return; |
66 } | 70 } |
100 c = rev->data; | 104 c = rev->data; |
101 s = c->data; | 105 s = c->data; |
102 | 106 |
103 ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, "pop3 auth state"); | 107 ngx_log_debug0(NGX_LOG_DEBUG_IMAP, c->log, 0, "pop3 auth state"); |
104 | 108 |
105 /* TODO: timeout */ | 109 if (rev->timedout) { |
110 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out"); | |
111 ngx_imap_close_connection(c); | |
112 return; | |
113 } | |
106 | 114 |
107 rc = ngx_pop3_read_command(s); | 115 rc = ngx_pop3_read_command(s); |
108 | 116 |
109 if (rc == NGX_AGAIN || rc == NGX_ERROR) { | 117 if (rc == NGX_AGAIN || rc == NGX_ERROR) { |
110 return; | 118 return; |