qpsmtpd/qpsmtpd-0.95-qpsmtpd_forserver_keepalive.patch

12 lines
524 B
Diff
Raw Normal View History

diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.95/qpsmtpd-forkserver mezzanine_patched_qpsmtpd-0.95/qpsmtpd-forkserver
--- qpsmtpd-0.95/qpsmtpd-forkserver 2015-02-11 23:00:25.000000000 +0100
+++ mezzanine_patched_qpsmtpd-0.95/qpsmtpd-forkserver 2015-12-16 22:09:28.782321968 +0100
@@ -246,6 +246,7 @@
my ($client, $hisaddr) = $server->accept;
next if !$hisaddr;
+ $client->sockopt(SO_KEEPALIVE,1);
IO::Handle::blocking($client, 1);
# get local/remote hostname, port and ip address