diff options
| author | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-06 21:28:13 +0300 |
|---|---|---|
| committer | Dmitry Volyntsev <xeioex@nginx.com> | 2016-09-06 21:28:13 +0300 |
| commit | 87aaac4ac56255dc79f666491144cad2b520944d (patch) | |
| tree | 0411bf4dcd383f7b71fb0e80625221d1ec206f76 /src/stream/ngx_stream.h | |
| parent | 68a7b9b5a302cf6c93fb7a8aec64c09b98150146 (diff) | |
| download | nginx-87aaac4ac56255dc79f666491144cad2b520944d.tar.gz nginx-87aaac4ac56255dc79f666491144cad2b520944d.tar.bz2 | |
Stream: postpone session initialization under accept mutex.
Previously, it was possible that some system calls could be
invoked while holding the accept mutex. This is clearly
wrong as it prevents incoming connections from being accepted
as quickly as possible.
Diffstat (limited to '')
| -rw-r--r-- | src/stream/ngx_stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h index 958fca96a..1a7d56864 100644 --- a/src/stream/ngx_stream.h +++ b/src/stream/ngx_stream.h @@ -184,6 +184,10 @@ struct ngx_stream_session_s { #endif ngx_uint_t status; + +#if (NGX_STREAM_SSL) + ngx_uint_t ssl; /* unsigned ssl:1; */ +#endif }; |
