The official NGINX Open Source repository.
Go to file
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
auto The gRPC proxy module. 2018-03-17 23:04:24 +03:00
conf MIME: added most common OpenDocument types. 2017-10-02 19:07:01 +03:00
contrib Contrib: vim syntax, update 3rd party module directives. 2018-02-01 11:15:14 +02:00
docs nginx-1.13.9-RELEASE 2018-02-20 17:08:48 +03:00
misc Updated OpenSSL used for win32 builds. 2017-12-26 17:48:49 +03:00
src gRPC: special handling of "trailer only" responses. 2018-03-17 23:04:26 +03:00
.hgtags release-1.13.9 tag 2018-02-20 17:08:49 +03:00