[Yum-devel] keepalives and pain

Ryan Tomayko rtomayko at naeblis.cx
Fri Oct 8 14:58:19 UTC 2004


> So I'm wondering how hard it would be to force close all
> keepalives at a certain time.

Hmm. Without having a chance to look at the code, I'm pretty sure there 
is something for that. If I remember correctly, the KeepaliveHandler 
holds onto a list of what may be active connections. There may even be 
a close_all method but I don't think you have a clean interface to call 
it since the Handler is managed by URLGrabber. I can probably take a 
peak at this later on tonight.

Ryan

On Oct 8, 2004, at 10:32 AM, seth vidal wrote:
> Hi,
>  We've recently discovered, due to a 'feature' in rpmlib that if a
> keepalive is left around, especially during a transaction and the 
> remote
> server kills off the connection, that yum will immediately exit w/o any
> warning or traceback due to rpmlib catching the SIGPIPE and handling it
> via exit(). So I'm wondering how hard it would be to force close all
> keepalives at a certain time. So when yum reaches the point where it's
> all inside the rpm transaction and no longer downloading anything I can
> force close all urlgrabber keepalives, and be reasonably sure that we
> won't get any spurious sigpipe's from a server sloughing off extra
> connections.
>
> any ideas?
> -sv
>
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel




More information about the Yum-devel mailing list