nginx/src
Maxim Dounin 6559a42013 gRPC: special handling of "trailer only" responses.
The gRPC protocol makes a distinction between HEADERS frame with
the END_STREAM flag set, and a HEADERS frame followed by an empty
DATA frame with the END_STREAM flag.  The latter is not permitted,
and results in errors not being propagated through nginx.  Instead,
gRPC clients complain that "server closed the stream without sending
trailers" (seen in grpc-go) or "13: Received RST_STREAM with error
code 2" (seen in grpc-c).

To fix this, nginx now returns HEADERS with the END_STREAM flag if
the response length is known to be 0, and we are not expecting
any trailer headers to be added.  And the response length is
explicitly set to 0 in the gRPC proxy if we see initial HEADERS frame
with the END_STREAM flag set.
2018-03-17 23:04:26 +03:00
..
core Core: ngx_current_msec now uses monotonic time if available. 2018-03-01 20:25:50 +03:00
event Generate error for unsupported IPv6 transparent proxy. 2018-02-22 13:16:21 +03:00
http gRPC: special handling of "trailer only" responses. 2018-03-17 23:04:26 +03:00
mail SSL: using default server context in session remove (closes #1464). 2018-01-30 17:46:31 +03:00
misc Style: aligned ngx_null_command. 2017-07-12 11:34:04 +03:00
os Fixed capabilities version. 2017-12-19 19:00:27 +03:00
stream Style. 2018-03-12 18:38:53 +03:00