http://bugzilla.spamassassin.org/show_bug.cgi?id=4260
------- Additional Comments From [EMAIL PROTECTED] 2005-04-13 15:35 -------
Justin, no I do mean create the socket when $self->{res} is created, and save it
in $self->{sock}. Then instead of calling bgsend, which creates a new socket
calls $sock->send and then returns $sock, you instead call $self->{sock}->send.
The objects that are pushed on the pending list will no longer have to contain
the socket, just the other information including the ID. Instead of going
through a list of sockets to check if any are ready to read, you check only
$self->{sock}. If the socket ever times out, then the pending list is cleared.
Timeout is always measured from the last send.
I think, without looking through it very carefully, that what I just described
contains very little change to the existing code while still reducing the number
of sockets to two per process and without introducing an event model.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.