add ReadableConnection interface

This commit is contained in:
MihailRis
2025-10-06 01:49:13 +03:00
parent 80cd187c6f
commit 44bf4a2f9e
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ public:
readBatch.clear();
if (state != ConnectionState::CLOSED) {
shutdown(descriptor, 2);
shutdown(descriptor, SHUT_RDWR);
closesocket(descriptor);
}
}