0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

modules/root: Disconnect the client for errors here for now.

This commit is contained in:
Jason Volk 2018-03-26 02:32:29 -07:00
parent 85dab56f50
commit 32f99e75d9

View file

@ -77,9 +77,12 @@ try
char headbuf[64];
const unwind::exceptional terminate{[&headbuf, &client]
{
client.write_all("\r\n"_sv);
client.write_all(http::writechunk(headbuf, 0));
client.write_all("\r\n"_sv);
//TODO: find out if it's not a client problem so we don't have to eject
//TODO: them. And write_all() blowing up inside here is bad.
client.close(net::dc::RST, net::close_ignore);
//client.write_all("\r\n"_sv);
//client.write_all(http::writechunk(headbuf, 0));
//client.write_all("\r\n"_sv);
}};
client.write_all(http::writechunk(headbuf, size(first_chunk)));