Questions tagged [socket]

A socket is an abstract network construct with a sending and receiving side. In most modern operating systems (OS) there are device representations, and programming tools to address sockets.

564 questions
1
vote
1 answer

Web socket regular disconnections on OS X

We have a SPA that runs SockJs both client and server (NodeJs) side. For Windows workstations we have no problems maintaining web socket connections to servers deployed in Windows Azure. But for some colleagues using Mac OS X workstations they are…
icelava
  • 870
  • 4
  • 13
  • 28
1
vote
1 answer

socket.io session ends with HAproxy

I'm stuck with dealing with the configuration of HAproxy to make it work with socket.io. My last question was this: HAProxy is caching the forwarding? and I got it working, but for some reason, after the authentication is made and the some commands…
shadow_of__soul
  • 376
  • 1
  • 6
  • 16
1
vote
1 answer

Apache SMTP connection times out

A web server that has successfully sent mail using the hosting providers's SMTP server before seems to suddenly have lost connection to the SMTP server. [Wed Nov 28 09:51:27 2012] [error] [client 10.250.11.81] PHP Warning: fsockopen(): unable to…
Kaivosukeltaja
  • 205
  • 1
  • 8
1
vote
1 answer

HAProxy is caching the forwarding?

i'm trying to set up a server structure for an application i'm building in Node.js with socket.io. My setup is: HAProxy frontend forward to -> apache2 as default backend (or nginx, is apache in this local test) -> node.js app if the url…
shadow_of__soul
  • 376
  • 1
  • 6
  • 16
1
vote
1 answer

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

The IP address on my server recently was changed, and after the change, i performed a restart and when it came back online MySQL stopped working. I am running Debian 6. I type mysql -u username -p and I get this message: Can't connect to local MySQL…
Mitch
  • 181
  • 1
  • 8
1
vote
1 answer

Using mod_wsgi with mpm_itk: socket permission issue

I'm using mod_itk as MPM for increased security in shared environment. I also have a Firefox Sync Server within one of the VHosts I host. That vhost is restricted to a certain user via AssignUserId user group. The problem is that the socket…
usr-local-ΕΨΗΕΛΩΝ
  • 2,359
  • 7
  • 34
  • 52
1
vote
0 answers

Suphp connection reset by peer in error logs

In my Linux server's logs I have this record nearly every 5 minutes. I couldn't find the reason for two weeks and I would be very happy if you can recommend me a way to diagnose the problem. It is inside error_log file. I use php 5.3.8 and litespeed…
trante
  • 131
  • 6
1
vote
3 answers

Granting PHP permission to send/receive requests

I've written a PHP websockets server based on this library: https://github.com/Flynsarmy/PHPWebSocket-Chat This library operates as a server, and handles all incoming requests. The client can connect when I'm running locally (connecting to address…
Nathan Friend
  • 137
  • 2
  • 7
1
vote
2 answers

Setting up PHP Websockets

I've written a game using PHP web sockets that runs well on my local development server. I'm now attempting to run the web socket server on a non-local server, but my client JavaScript isn't able to connect. I'm attempting this on a clean install…
Nathan Friend
  • 137
  • 2
  • 7
1
vote
1 answer

why there are three(it should be two) process related to screen when using ps command?

you can see there are three processes which are related to screen command: [world]$ ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hugemeow 28938 0.0 0.0 66080 1692 ? S 23:03 0:00 sshd:…
giantforest
  • 239
  • 1
  • 4
  • 15
1
vote
1 answer

Setting up PHP 5.4 with MySQL to use Unix Sockets

I've compiled PHP 5.4.5 from source, and I've installed nginx 1.2.1 and mysql 5.1.63-0ubuntu0.11.04.1 from apt-get on my Ubuntu 11.04 LTS server. I installed nginx using this: add-apt-repository ppa:nginx/stable echo "deb…
Mark Tomlin
  • 650
  • 3
  • 10
  • 23
1
vote
1 answer

Redhat linux: Slow start of new socket connections

I am having problems with a Red Hat server 2.6.18. The creation of a new TCP socket takes very long - once it is established it is fine. iptables and selinux are disabled - is there any other service which needs to be stopped? Oddly enough I see…
weismat
  • 343
  • 3
  • 16
1
vote
1 answer

WSAENOBUFS errors when performing HTTP connections on Windows Server 2008 x64

We are trying to transfer large number of files from a network share into Openstack using a custom written Erlang application (using Erlang version R15B). After about 20k files transferred the Erlang process starts returning enobufs errors resulting…
Eric
  • 31
  • 5
1
vote
2 answers

How do communcations through ports works

I was studying socket programming and certain questions came to my mind. These are some beginner level doubts Is it mandatory to to use well known port for a particular application. For example if i am using ssl, can i design a server to listen on…
user71866
  • 221
  • 2
  • 7
1
vote
0 answers

SocketException (Timeout) only when running as scheduled task

I'm running a C# web-scrapper application (that I wrote) on a Windows Server 2003 instance under a user belonging to the local Administrator group. When I run it within a desktop/remote-desktop session the application runs successfully but when I…