comparison src/mail/ngx_mail_proxy_module.c @ 3505:c631ef8beaaa

Zimbra IMAP server may return only 4 bytes: "+ \r\n"
author Igor Sysoev <igor@sysoev.ru>
date Fri, 23 Apr 2010 09:53:52 +0000
parents f0d596e84634
children dd1570b6f237
comparison
equal deleted inserted replaced
3504:2132e8ea8fe4 3505:c631ef8beaaa
724 return NGX_AGAIN; 724 return NGX_AGAIN;
725 } 725 }
726 726
727 b->last += n; 727 b->last += n;
728 728
729 if (b->last - b->pos < 5) { 729 if (b->last - b->pos < 4) {
730 return NGX_AGAIN; 730 return NGX_AGAIN;
731 } 731 }
732 732
733 if (*(b->last - 2) != CR || *(b->last - 1) != LF) { 733 if (*(b->last - 2) != CR || *(b->last - 1) != LF) {
734 if (b->last == b->end) { 734 if (b->last == b->end) {