hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : socket issues
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

socket issues

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2008, 12:14 AM
Adam Hallett Adam Hallett is offline
WHT Addict
 
Join Date: Aug 2001
Posts: 123
socket issues

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?

Reply With Quote


Sponsored Links
  #2  
Old 12-14-2008, 01:14 PM
majoosh majoosh is offline
Junior Guru Wannabe
 
Join Date: Jan 2007
Location: India
Posts: 96
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

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Security Alliance Launches Website for Cloud-Related Legal Issues Web Hosting News 2013-02-25 11:27:00
PayPal UK IPN Issues Impact Web Hosts, Users Web Hosting News 2013-02-01 09:34:43
Prolexic Reports Key Holes in Popular DDoS Attack Tool Dirt Jumper Web Hosting News 2012-08-14 14:48:14
Web Hosts Add New Intel E5 Romley Servers to Boost Performance by 80 Percent Web Hosting News 2012-03-09 13:56:51
More on Save Hosting Blog 2011-09-26 18:50:28


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?