comparison src/event/ngx_event_openssl.c @ 3962:df2ae4bc7415

fix SSL connection issues on platforms with 32-bit off_t patch by Maxim Dounin
author Igor Sysoev <igor@sysoev.ru>
date Fri, 22 Jul 2011 12:53:04 +0000
parents 4048aa055411
children a1dd9dc754ab
comparison
equal deleted inserted replaced
3961:4048aa055411 3962:df2ae4bc7415
984 984
985 return in; 985 return in;
986 } 986 }
987 987
988 988
989 /* the maximum limit size is the maximum uint32_t value - the page size */ 989 /* the maximum limit size is the maximum int32_t value - the page size */
990 990
991 if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) { 991 if (limit == 0 || limit > (off_t) (NGX_MAX_INT32_VALUE - ngx_pagesize)) {
992 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; 992 limit = NGX_MAX_INT32_VALUE - ngx_pagesize;
993 } 993 }
994 994
995 buf = c->ssl->buf; 995 buf = c->ssl->buf;
996 996
997 if (buf == NULL) { 997 if (buf == NULL) {