!htp #19528 HttpServerBluePrint: close connection on request entity cancellation
This commit is contained in:
parent
6ef9ab3276
commit
af3fc0c9a6
10 changed files with 185 additions and 9 deletions
|
|
@ -53,6 +53,10 @@ The connection can also be closed by the server.
|
|||
An application can actively trigger the closing of the connection by completing the request stream. In this case the
|
||||
underlying TCP connection will be closed when the last pending response has been received.
|
||||
|
||||
The connection will also be closed if the response entity is cancelled (e.g. by attaching it to ``Sink.cancelled()``)
|
||||
or consumed only partially (e.g. by using ``take`` combinator). In order to prevent this behaviour the entity should be
|
||||
explicitly drained by attaching it to ``Sink.ignore()``.
|
||||
|
||||
|
||||
Timeouts
|
||||
--------
|
||||
|
|
|
|||
|
|
@ -130,6 +130,10 @@ connection. An often times more convenient alternative is to explicitly add a ``
|
|||
``HttpResponse``. This response will then be the last one on the connection and the server will actively close the
|
||||
connection when it has been sent out.
|
||||
|
||||
Connection will also be closed if request entity has been cancelled (e.g. by attaching it to ``Sink.cancelled()``)
|
||||
or consumed only partially (e.g. by using ``take`` combinator). In order to prevent this behaviour entity should be
|
||||
explicitly drained by attaching it to ``Sink.ignore()``.
|
||||
|
||||
|
||||
.. _serverSideHTTPS-java:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue