mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
write entire input FIFO
remove length argument from _fifoOut.write(), defaulting to the entire _fifoIn content write attempt (including any previous call "leftovers")
This commit is contained in:
@@ -133,7 +133,7 @@ public:
|
|||||||
{
|
{
|
||||||
// receive bytes and transfer(echo) them to the output FIFO buffer
|
// receive bytes and transfer(echo) them to the output FIFO buffer
|
||||||
int len = _socket.receiveBytes(_fifoIn);
|
int len = _socket.receiveBytes(_fifoIn);
|
||||||
_fifoIn.drain(_fifoOut.write(_fifoIn.buffer(), len));
|
_fifoIn.drain(_fifoOut.write(_fifoIn.buffer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void onSocketWritable(const AutoPtr<WritableNotification>& pNf)
|
void onSocketWritable(const AutoPtr<WritableNotification>& pNf)
|
||||||
|
|||||||
Reference in New Issue
Block a user