servers: close socket on write error
This commit is contained in:
parent
b5ce501088
commit
7b8ccf5a6c
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ template<class SocketPtr> void server_base::coro_send_doc(SocketPtr socket, simp
|
|||
boost::system::error_code ec;
|
||||
async_write(*socket, buffers, yield[ec]);
|
||||
if(check_error(ec, socket)) {
|
||||
socket->lowest_layer().close();
|
||||
return;
|
||||
}
|
||||
} catch (simple_wml::error& e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue