View Single Post
  #4 (permalink)  
Old 08-14-03, 09:59 AM
e4c5 e4c5 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

The reason that hosting companies encourage you to close connections is that only a limited number of sockets connections can be opened on any server (be it windows or linux)

On a shared server this can be used up pretty quickly.

The connection opening in fact has some overheads. So on well managed connection pooling systems (not talking just of PHP here) when you attempt to close the connection what really happens is that the connection is returned to a pool. It's kept there for a few minutes in the hope that someone will claim it. After that it's closed automatically.

well this is atleat my understanding of matters :-))
__________________
Raditha Dissanayake

<a href="http://www.radinks.com/sftp">http://www.radinks.com/sftp</a>
Lean and mean sftp applet with GUI.
Reply With Quote