Posted by Jerry Stuckle on 10/27/07 14:16
DiAvOl wrote:
> Hello,
>
> I am using a simple php server that I wrote and have some questions
> related to the resource id's. When a new client connects to the server
> or the server opens a file the Resource id number increases normally,
> but when the server closes the socket and the file and then a new
> client connects or file opens, the Resource id still increases without
> reseting to the previous closed id's.
>
> For example:
>
> Client connects to the server...accept();
> Client fd: Resource id #1
> client quits.... fclose/socket_close
> Client connects to the server...accept();
> Client fd: Resource id #2
> client quits.... fclose/socket_close
> ...
> ...
> ...
> Client connects to the server...accept();
> Client fd: Resource id #12456
>
> Shouldn't the resource id reset to #1 when the second client
> connected ? Can this behaviour cause problems to the server ?
>
Why should it? The actual value is immaterial. It is only a unique id
used to identify a reference.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|