guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Bindings for ‘sendfile’


From: Ludovic Courtès
Subject: Re: [PATCH] Bindings for ‘sendfile’
Date: Wed, 17 Apr 2013 18:27:04 +0200
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.3 (gnu/linux)

Thien-Thi Nguyen <address@hidden> skribis:

> The original application was "ttn-do serve-debiso", which configures
> "ttn-do sizzweb" to serve debian ISOs (or rather, the various component
> .deb files and metadata that apt-get requests from the loopback-mounted
> ISO) over the home network.
>
> Specifically, proc ‘prep-file-transfer’ in module ‘(ttn-do sizzweb)’
> calls ‘sendfile’ in a loop.  Admittedly, that code could be replaced by
> ‘sendfile/never-fewer’, as the retval is not used in a particularly
> intelligent way, but anyway, the point is, at time of writing and early
> testing *sans looping*, apt-get on the other computer would stall and
> eventually die, complaining.  That's when i learned to read and think
> about sendfile(2) more carefully than i had before.

So that was over a PF_INET/SOCK_STREAM socket, right?

Would it occur systematically, or just once in a while?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]