diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-10-28 18:48:08 +0100 |
---|---|---|
committer | spamd-stats <spamd-stats@vm-mail.spline.inf.fu-berlin.de> | 2015-10-28 18:48:08 +0100 |
commit | e81855fe85eec684fe8a4af6c855ba1d9e60f765 (patch) | |
tree | b549c4f24fcda5602703f144cbd10012f724a31d | |
parent | 463de8fb5daf8178039f397cd73e5bd7fe134836 (diff) | |
download | spamd-stats-e81855fe85eec684fe8a4af6c855ba1d9e60f765.tar.gz spamd-stats-e81855fe85eec684fe8a4af6c855ba1d9e60f765.tar.bz2 spamd-stats-e81855fe85eec684fe8a4af6c855ba1d9e60f765.zip |
log.pl: Close socket _after_ finishing sending
-rwxr-xr-x | log.pl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -22,9 +22,10 @@ tcp_connect 'unix/', $log_socket, sub { $h->push_write($_); } - $h->push_shutdown; - $h->destroy; - $cv->send; + $h->on_drain (sub { + undef $h; + $cv->send; + }); }; $cv->recv; |