Re: "Stalled" tcpsvd?
Gerrit Pape <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 29, 2004 at 02:39:17PM +0300, Sergei Kolobov wrote: > I am experiencing a strange symptoms on a couple of my systems, where > tcpsvd would in a sense "stall", thinking that all connections are coming > from the same IP address. [...] > After the "connection aborted" message, all SMTP connections are coming > from 211.185.38.61. This situation continues from 2004-11-26 19:04:55 GMT > Any ideas on what might be causing this behaviour? Yes, it looks like a problem in tcpsvd, can you please try the patch below? Thanks for the good and complete bug report. Regards, Gerrit.
diff
(text/plain, 320 B)
diff -u -r1.22 tcpsvd.c
--- src/tcpsvd.c 14 Jul 2004 19:43:38 -0000 1.22
+++ src/tcpsvd.c 29 Nov 2004 16:02:31 -0000
@@ -374,6 +374,7 @@
}
for (;;) {
while (cnum >= cmax) sig_pause();
+ socka_size =sizeof(socka);
sig_unblock(sig_child);
conn =accept(s, (struct sockaddr *)&socka, &socka_size);