Skip to content

Commit

Permalink
Remove redundant force processing output queue
Browse files Browse the repository at this point in the history
  • Loading branch information
atarassov-ttd committed Nov 22, 2023
1 parent bc546b3 commit c2a56a3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vsock-bridge/src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ namespace vsockio
{
Logger::instance->Log(Logger::DEBUG, "[socket] readToInput detected output peer closed, closing input (fd=", _fd, ")");
closeInput();

// There may be a termination buffer queued by the peer. Poller may not be able to detect that and mark
// the socket as ready for write in a timely fashion. Force process the queue now.
_outputReady = true;
writeToOutput();

return false;
}

Expand Down

0 comments on commit c2a56a3

Please sign in to comment.