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

ircd::server: Add throwing socket check before read.

This commit is contained in:
Jason Volk 2019-09-09 18:29:24 -07:00
parent 7a6c872870
commit 568acd46c4

View file

@ -2242,6 +2242,9 @@ ircd::server::link::process_read_next(const const_buffer &underrun,
bool &done)
try
{
assert(socket);
net::check(*socket, net::ready::ERROR); // throws
const mutable_buffer buffer
{
tag.make_read_buffer()