FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Lookup zip by IP address
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Lookup zip by IP address [message #173397 is a reply to message #172990] Thu, 07 April 2011 17:01 Go to previous messageGo to previous message
Tobiah is currently offline  Tobiah
Messages: 30
Registered: April 2011
Karma:
Member
>>>> Each of those HTTP requests uses a new TCP connection.
>>> Not always, as I understand it.
>>>
>>> http://en.wikipedia.org/wiki/HTTP_persistent_connection
>>
>> I omitted that because it seemed like an unnecessary complication to
>> the discussion. You are, however, absolutely correct that it is
>> possible. I really should have tossed "(in general)" in there
>> somewhere.
>
> I think its actual default behaviour these days, but I am not sure
> enough to make that an assertion.

From Wikipedia:

In HTTP 1.1 all connections are considered persistent unless declared
otherwise[1]. The HTTP persistent connections do not use separate
keepalive messages, they just allow multiple requests to use single
connection. However, the default connection timeout of Apache 2.0 httpd
[2] is as little as 15 seconds[3] and for Apache 2.2 only 5 seconds.[4]
The advantage of a short timeout is the ability to deliver multiple
components of a web page quickly while not tying up multiple server
processes or threads for too long.

So if you load a bunch of images, they will all come down over
the same connection, but by the time you move to another page,
it's likely that the connection will have been dropped by that time,
depending on server settings.

Toby
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem getting session through CURL
Next Topic: How to call external php script from html?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 17:15:43 GMT 2024

Total time taken to generate the page: 0.05071 seconds