add ReadableConnection interface
This commit is contained in:
@@ -231,7 +231,7 @@ public:
|
||||
readBatch.clear();
|
||||
|
||||
if (state != ConnectionState::CLOSED) {
|
||||
shutdown(descriptor, 2);
|
||||
shutdown(descriptor, SHUT_RDWR);
|
||||
closesocket(descriptor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user