Re: Do Sockets Cache?
| From: | Roman Neuhauser | Date: | Thu, 21 Dec 2006 00:35:18 +0000 |
| Subject: | Re: Do Sockets Cache? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246099@lists.php.net to get a copy of this message | ||
# manager@phidot.com / 2006-12-20 23:31:56 +0200:
> I have a daemon application listening as root on my linux server that i have
> written in PHP. I use it to communicate web user with the backend linux to
> make certain operations from web interface. I have a login/verify command
> that i send to socket server to log in. I send raw command something like
> (login user hash) ;
>
> client command -> login admin Fjsdla5dk2mDke
> server response -> YES/NO
>
> Server reads from a plain text file containing user/hash and gives yes or
> no.
>
> But it is working like a lottery, sometimes yes sometimes no through WEB.
> When i test through shell, telnet or etc. it is fine, through web it
> sometimes outputs YES, sometimes outputs nothing (does not give NO), like it
> is not even connecting or getting no response at all. I have test mechanisms
> for valid connection and data send.
>
> So i get this crazy idea of caching for connections on web.
>
> What do you think?
I think that your email is very confusing and lacking clearer
description of your problem.
Post a short self-contained piece of code which demonstrates your
problem, and state how it behaves and how the observed behavior differs
from the behavior you expected.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991