Mercurial > hg > nginx-quic
view src/os/unix/ngx_linux.h @ 5579:7586e7b2dbe9
Upstream: ngx_post_event() instead of upgraded call (ticket #503).
If a request is finalized in the first call to the
ngx_http_upstream_process_upgraded() function, e.g., because upstream
server closed the connection for some reason, in the second call
the u->peer.connection pointer will be null, resulting in segmentation
fault.
Fix is to avoid second direct call, and post event instead. This ensures
that ngx_http_upstream_process_upgraded() won't be called again if
a request is finalized.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 18 Feb 2014 17:30:40 +0400 |
parents | d620f497c50f |
children | adba26ff70b5 |
line wrap: on
line source
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #ifndef _NGX_LINUX_H_INCLUDED_ #define _NGX_LINUX_H_INCLUDED_ ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit); extern int ngx_linux_rtsig_max; #endif /* _NGX_LINUX_H_INCLUDED_ */