in reply to Re: LWP::UserAgent single session
in thread LWP::UserAgent single session

Encouraging only a single tcp connection can make downloading a lot faster when there are lots of small files. That's why browsers are doing that too: websites often refer to lots of small images.

Update: this is of course even more true for https then for http.

Replies are listed 'Best First'.
Re^3: LWP::UserAgent single session
by CountZero (Bishop) on Feb 15, 2010 at 18:51 UTC
    That must be because the time used for setting up and tearing down the TCP socket connection is significant relative to the time spent in transmitting the data, but I fail to see what security implications it has.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James