commit f5f71a04830c68cddf72cca7f77c8dec97451abb from: Omar Polo via: Thomas Adam date: Mon Jan 23 18:21:06 2023 UTC gotd: disconnect on client EOF too Otherwise gotd keeps the (client-closed) sockets around and may prevent new connections from being established since they still count for the limits. ok jamsek, stsp commit - 8efb3dc0bc74c64b086dbee78912ab594bae37bd commit + f5f71a04830c68cddf72cca7f77c8dec97451abb blob - 823a2d9d22e1f4f65df19bbbb7539f88ae4ce5a2 blob + eb19aa1370c1413dfea8caa409a7c5a2a46cd61c --- gotd/gotd.c +++ gotd/gotd.c @@ -649,8 +649,7 @@ gotd_request(int fd, short events, void *arg) } if (err) { - if (err->code != GOT_ERR_EOF) - disconnect_on_error(client, err); + disconnect_on_error(client, err); } else { gotd_imsg_event_add(&client->iev); }