Patrick Felt wrote:
> so it looks like this is a bug in connio.
Bug and/or feature I would suspect.
So, I think I actually noticed this the first time I ran through your
patch but assumed connio did things "right". The bit of code I queried
was this:
- len = connect(client->conn->socket, (struct sockaddr
*)&saddr, sizeof(saddr));
- if (!len) {
- /* Non-blocking, w/o nagele */
- len = 1;
- setsockopt(client->conn->socket, IPPROTO_TCP, 1,
(unsigned char *)&len, sizeof(len));
That setsockopt() claims to be (by the comment) changing the behaviour
of the network socket to the queue client/agent. You've removed that,
and maybe connio doesn't do that, this could be the cause of your
problem? Might be worth sticking that setsockopt back and seeing if it
magically 'works' again.
I guess the other thing is to ask netstat whether or not the
corresponding socket is still open - perhaps antispam just isn't closing
sockets properly? I wouldn't expect ConnTcpRead() to fail until the
connection is properly closed.
Hope that helps, anyway!
Alex.
_______________________________________________
Bongo-devel mailing list
[email protected]
https://mail.gna.org/listinfo/bongo-devel