Quote:
Originally Posted by Adam Hallett
This is on a Debian VPS with Apache installed. I figured this forum would be more appropriate because I think this is an OS level issue. I'm running a basic php client / php server. The php script is requested by the web browser and connects to the php server on the backend. However, if I connect more than a few times by clicking refresh I get this:
Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:1240 (Unknown error) in /home/www/client_connect.php on line 3
error opening fp
It should also be noted that I've gotten this same error when I try to do over 20 simultaneous connections with stream_sock_client() running from the command-line (non-root). Or when I try to connect to my backend from my frontend.
Warning: stream_socket_client(): unable to connect to xx.xxx.xx.xxx:1838 (Unknown error) in /home/adam/server/test.php on line 488
failed to connect to xx.xxx.xx.xxx:1838 errno:0 errstr:
~/www$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
max rt priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
What can I do to trouble shoot this?
Hi,
You have any firewalls installed ?
Majoosh