mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
Fix bug in which plasma client file descriptors were not closed. (#618)
* Fix bug in which plasma client file descriptors were not closed. * Add logging statement when disconnecting client from plasma store. * Fix after rebasing. * Add more checks to plasma disconnect client.
This commit is contained in:
committed by
Philipp Moritz
parent
bcaab78908
commit
4d51ed37b2
@@ -407,7 +407,12 @@ void PlasmaStore::connect_client(int listener_sock) {
|
||||
}
|
||||
|
||||
void PlasmaStore::disconnect_client(Client *client) {
|
||||
ARROW_CHECK(client != NULL);
|
||||
ARROW_CHECK(client->fd > 0);
|
||||
loop_->remove_file_event(client->fd);
|
||||
// Close the socket.
|
||||
close(client->fd);
|
||||
ARROW_LOG(INFO) << "Disconnecting client on fd " << client->fd;
|
||||
// If this client was using any objects, remove it from the appropriate
|
||||
// lists.
|
||||
for (const auto &entry : store_info_.objects) {
|
||||
|
||||
Reference in New Issue
Block a user