summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6539bed)
raw | patch | inline | side by side (parent: 6539bed)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Apr 2014 19:44:18 +0000 (21:44 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Apr 2014 19:44:18 +0000 (21:44 +0200) |
src/frontend/sock.c | patch | blob | history |
diff --git a/src/frontend/sock.c b/src/frontend/sock.c
index 3b9799496df8bf1e70d501393e36b91de0ebd86e..70f22d705b694a4e24b6ff0639cd4cd33e0f4932 100644 (file)
--- a/src/frontend/sock.c
+++ b/src/frontend/sock.c
while (sdb_llist_iter_has_next(iter)) {
sdb_object_t *obj = sdb_llist_iter_get_next(iter);
- if (FD_ISSET(CONN(obj)->fd, exceptions))
+ if (FD_ISSET(CONN(obj)->fd, exceptions)) {
sdb_log(SDB_LOG_INFO, "Exception on fd %d",
CONN(obj)->fd);
+ /* close the connection */
+ sdb_llist_iter_remove_current(iter);
+ sdb_object_deref(obj);
+ continue;
+ }
if (FD_ISSET(CONN(obj)->fd, ready)) {
sdb_llist_iter_remove_current(iter);