http write returns success on connection close (API Change):

fix #767

The write family of HTTP stream algorithms no longer returns
error::end_of_stream when the message indicates that the connection
should be closed.

Actions Required:

* Add code to servers to close the connection after successfully
  writing a message where `message::keep_alive()` would return `false`.
This commit is contained in:
Vinnie Falco
2017-10-22 07:03:04 -07:00
parent 885b9dfe0b
commit d0d4e0a740
16 changed files with 122 additions and 83 deletions
@@ -100,8 +100,8 @@ private:
void
process_request()
{
response_.version(11);
response_.set(http::field::connection, "close");
response_.version(request_.version());
response_.keep_alive(false);
switch(request_.method())
{