comparison src/core/ngx_connection.h @ 5498:d39a69427056

Allowed up to two EBUSY errors from sendfile(). Fallback to synchronous sendfile() now only done on 3rd EBUSY without any progress in a row. Not falling back is believed to be better in case of occasional EBUSY, though protection is still needed to make sure there will be no infinite loop.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 04 Jan 2014 03:31:58 +0400
parents 1ab1cf63f885
children 311803b21504
comparison
equal deleted inserted replaced
5497:2cfc095a607a 5498:d39a69427056
175 unsigned accept_context_updated:1; 175 unsigned accept_context_updated:1;
176 #endif 176 #endif
177 177
178 #if (NGX_HAVE_AIO_SENDFILE) 178 #if (NGX_HAVE_AIO_SENDFILE)
179 unsigned aio_sendfile:1; 179 unsigned aio_sendfile:1;
180 unsigned busy_count:2;
180 ngx_buf_t *busy_sendfile; 181 ngx_buf_t *busy_sendfile;
181 #endif 182 #endif
182 183
183 #if (NGX_THREADS) 184 #if (NGX_THREADS)
184 ngx_atomic_t lock; 185 ngx_atomic_t lock;