0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02: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()