Thien-Thi Nguyen <t...@gnuvola.org> 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’.