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.

learn more… | top users | synonyms

3
votes
1answer
2k views

Maximum limit of filepointer in php reached and not changeable

I have a server with the current 5.3.x version installed. Since we are running a really simple and small server in php using sockets, that connects to a lot clients using sockets we need to raise the ...
2
votes
2answers
1k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
0
votes
2answers
2k views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
1
vote
0answers
441 views

Configuring Nginx reverse proxy with SSL and websocket

I'm running a web app that is using websockets and have nginx as a reverse proxy for that and that works fine. I've also been able to get SSL to work without the socket. Now we're nearing the official ...
0
votes
3answers
1k views

nginx node.js & socket.io 504 timeout

Nginx config server { listen *:80; server_name live.domain.com; server_tokens off; charset utf-8; error_log /var/log/nginx/live-error.log info; ...
0
votes
0answers
13 views

How to handle thousands of messages to C socket? [migrated]

I currently have a setup looking like this: __________________ _________ ________ ___________ | Front end server |----| Varnish |----| NodeJS |----| C-service | ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ ...
0
votes
1answer
2k views

IIS Reverse proxy and websockets, failed websocket handshake

I am running a little website using IIS 7.5 on Windows Server 2008 R2. I've got a node.js application too running on port 3000. Http calls from the website (client browser) are reverse proxied from ...
0
votes
0answers
22 views

Client socket connection starts working only after being pinged by server?

I have a networked game I'm testing on a LAN. I'm using RakNet as my networking library. Generally everything works fine, but sometimes the client (an iPhone) seems to get "confused" when initiating ...
8
votes
2answers
1k views

Where are my TIME_WAITs on Mac OS X?

No TIME_WAITs on Mac OS X Normally, when a TCP connection is closed, the socket on the side where close() is called first is left in the TIME_WAIT state. When one of the peers is a Mac OS X (Lion) ...
5
votes
2answers
3k views

Siege: descriptor table full sock.c:119: Too many open files

I am trying to make a stress test in my own server using siege with the following command: $ siege -c 500 myweb.com/somefile.php But I get this error: [error] descriptor table full sock.c:119: Too ...
5
votes
1answer
1k views

WebRTC on standalone asterisk - no audio

After struggling with Asterisk for WebRTC for a few weeks now, I decided to put my problem on this forum. My Problem is as follows: Im not getting audio from WebRTC to WebRTC clients. I work in a LAN ...
1
vote
1answer
2k views

Unable to access 3ware 3dm2 web interface, failed to start listening socket

I am unable to get to the 3ware 3dm2 web interface. When I attempt to execute 3dm2 from the command line, i get the following error "(0x0C:0x0005): Failed to start listening socket". This was working ...
0
votes
1answer
57 views

Can't start mysql service [closed]

I can't restart my mysql service from my ubuntu server. Here is the error : ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql; bad; vendor ...
0
votes
1answer
4k views

dnsmasq: failed to create listening socket for port 53: Address already in use

I got this error when i done the setup dnsmasq. ashokkrishna@krishna:~$ sudo dnsmasq dnsmasq: failed to create listening socket for port 53: Address already in use ashokkrishna@krishna:~$ netstat -...
0
votes
1answer
6k views

node.js, socket.io only working on localhost, can't access from intranet

I am using node.js and socket.io for the real time notification system. I have tested node.js and socket.io with simple chat code, it pretty good with localhost but can't access the same from the ...
0
votes
2answers
25 views

Multiple readers on a Unix Domain Socket?

I was hoping to have multiple clients reading from /dev/log (rsyslog and a custom tool) which I understand is a unix domain socket. How can this be achieved?
8
votes
3answers
7k views

Is there any javascript ssh client?

I mean pure javascript client that uses HTML5 sockets and doesn't need to be installed, just open single js file in browser. Is it possible to write such client at all?
0
votes
0answers
8 views

How scalable is ratchet php socket server and php build in server? [duplicate]

I am using ratchet php to build a chat apps and it uses a php file to create a chat-server as shown in http://socketo.me/docs/hello-world chat-server.php code. The problem is I modified the code so ...
0
votes
2answers
1k views

Apache load balancer for mod_proxy_wstunnel?

We are in the process of developing a JavaEE 7 application to be deployed on JBoss/Wildfly that will make extensive use of Web Sockets. We're using mod_proxy_wstunnel for web socket support, and we'...
0
votes
0answers
10 views

Apache Reverse Proxy to Socketfile

I have a gunicorn server that is bound to a socket file, now I want the Apache Server to ReverseProxy to this connection (I know that nginx can do this with ease) how would I do this with Apache?
0
votes
0answers
182 views

400 Bad Request while creating websocket between client and nodejs with Nginx as reverse proxy

I am trying to create a websocket using Nginx as a reverse proxy and nodejs at the back. I'm using ws library in nodejs. When I test it using wscat tool everything works fine but as I make request ...
0
votes
0answers
31 views

Listening to 127.0.0.1:9000 but var/run/php5-fpm.sock failed (2: No such file or directory)

I have a webserver configured to accept FastCGI requests at 127.0.0.1:9000 like below. /etc/php5/fpm/pool.d/www.conf: listen = 127.0.0.1:9000 /etc/nginx/sites-enabled/mysite: location ~ .php$ { ...
6
votes
3answers
3k views

Sniff UNIX domain socket

I know that some process is writing to a certain unix domain socket (/var/run/asterisk/asterisk.ctl), but I do not known the pid of the sender. How can I find out who is writing to the socket? I have ...
1
vote
0answers
44 views

How to measure performance of stdin and unix sockets? [closed]

How to measure performance of stdin and unix sockets? In terms of GB || MB per second. I mean something to measure raw throughput of stdin for example time cat 1TB_dump.txt > /dev/null ,but without ...
1
vote
3answers
12k views

ERROR 2002 MYSQL socket /tmp/mysql.sock

A have already read everything about this error but I coundn't solve the problem. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38) I'm trying to install ...
-1
votes
1answer
31 views

Can't connect to socket from outside

I have a problem on my server when I start an application that listen to a port: I can connect to it from the same machine, but not from the ouside world. I noticed this problem when trying to create ...
-2
votes
1answer
31 views

Python and java static IP [closed]

I have a Python server. Each time I change the network the IP changes. I want it to have a static IP over all networks so it can receive data without customizing the code every time. I want to do the ...
-1
votes
1answer
20 views

Blocking a specific external IP:Port connection in RedHat?

I know that in RedHat, in the IP tables I can block incoming connections to a local port. I can also block connections from a specific IP. But is it possible to block a connection from a specific IP ...
0
votes
0answers
36 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
2
votes
0answers
52 views

ProxyPass a WebSocket connection to a UNIX socket

In Apache 2.4 you can reverse proxy an HTTP connection to a local Unix socket with: [1] ProxyPass unix:/path/to/app.sock|http://example.com/app/name You can reverse proxy a WebSocket connection to ...
1
vote
1answer
128 views

Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock

I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive. For neatness sake I thought it'd be nice to place the tmpdir and socket on this new ...
11
votes
5answers
29k views

Nginx + php5-fpm = “File not found”

I've hit a wall whilst setting up a site using nginx / fpm. The page displays "File not found", and this appears in the nginx error.log: FastCGI sent in stderr: "Primary script unknown" while reading ...
0
votes
1answer
527 views

Socket IO combined with apache ssl server

I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to ...
0
votes
0answers
6 views

No connection could be made because the target machine actively refused it error: [Errno 10061] [duplicate]

I start a server on socket using self.sock.bind(('0.0.0.0',0)). How can I make other machines connect to that port? I connect to public IP address and that port, I get : error: [Errno 10061] No ...
28
votes
3answers
25k views

What's the difference between Unix socket and TCP/IP socket?

It's from this answer: http://stackoverflow.com/questions/2482411/is-this-pdo-bug-fixed-now/2482424#2482424
0
votes
0answers
162 views

rails server using nginx + puma on ubuntu - suddenly get socket connect failed errors

I have ran jruby on rails in AWS ubuntu trusty 14.04 configuration. my server was going well during several hours. but suddenly get socket connect failed error. -nginx error.log 2016/03/12 10:12:10 [...
4
votes
2answers
2k views

TIME_WAIT consumes file descriptors?

In many TCPIP and Web tunning guide, recommends increasing max number of file descriptors when getting the error "Too many open files" but, i can't see TIME_WAIT in outputs of "lsof -i" Does anyone ...
0
votes
2answers
37 views

Binding conflict with iptables rules [closed]

I m developing a server in C which bind on a random port I m afraid that the choosen random port could conflict with iptables rules. I mean if the choosen port could be already exist in iptables as a ...
0
votes
0answers
26 views

Courier authdaemon socket missing (exim4)

On my Ubuntu 14.04 server, I'm running Exim4 together with Courier. I tried to configure Exim to use a DNSBL blacklist shortly. Since I rebooted the server, the mail server doesn't work anymore. When ...
6
votes
1answer
2k views

Haproxy load balancing with HTTP Headers

We're using HAProxy to load balance our websocket and comet application. There is one HAProxy and 3 applications running in the back. We use HTTP Basic Auth (and we will use other types of auth in ...
25
votes
6answers
30k views

How to find other end of unix socket connection?

I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36: =$ ps uw -p 23284 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
0
votes
0answers
16 views

Reverse Proxy Setting in Apache for Web Socket and Custom Ports

Can someone help me please to modify following reverse proxy setting to handle a custom port coming in QUERY_STRING of the URL. Here rest of the setting are fine but I'm not getting how to replace ...
0
votes
0answers
46 views

What happens when connecting to port in TIME_WAIT state?

I'm trying to understand the effect of TIME_WAIT on subsequent TCP connections. I understand how TIME_WAIT behaves when net.ipv4.tcp_tw_reuse = 1, as explained by this answer. But what happens when ...
0
votes
1answer
14 views

Make init script output available without hitting the filesystem

I'm working on an init script for a command which writes extensive activity messages to stdout. The output is only useful for debugging and since it will be running on a Pi, I don't want these ...
1
vote
2answers
610 views

MySQL Daemon Lock issue

Last night, my MySQL server went down unexpectedly. On attempting to restart (with service mysql restart - I'm root) it merely hangs. With the mysql -u root -p command, I get ERROR 2002 (HY000): Can't ...
14
votes
5answers
7k views

Forward local port or socket file to remote socket file

Quick question - I run two linux boxes, one my own desktop and the other my VPS. For security reasons on the VPS end I opted for socket connections to MySQL (/var/run/mysqld/mysql.sock). I know I can ...
5
votes
2answers
5k views

I can't run uwsgi as regular user

I want to run uwsgi server as www user, but if I write: uwsgi --socket $SOCKET --chmod-socket 666 --pidfile $PIDFILE --daemonize $LOGFILE --chdir $CHDIR --pp $PYTHONPATH --module main --post-...
0
votes
1answer
124 views

OpenVPN and nginx port sharing : Adress already in use

I have an instance of nginx running on ports 80 and 443, and I would like to use openvpn with the port 443 in sharing. So in my server.conf I have this port 443 port-share 127.0.0.1 4433 proto tcp ...
0
votes
1answer
93 views

Simpliest unix non-blocking “broadcast” socket

I have non-regularly running program which outputs string, I need to send this output to some kind of socket which can be distributed out of docker container and which can be listened by multiple ...
0
votes
1answer
43 views

kill tcp port binding by deleting proc/[0-9]/net/… in linux

I have a script to call syscall Kill the process that holds a certain TCP port in Linux (ubuntu). But even if I do that, sometimes the port still remains in /proc/[0-9]/net directory binding the port. ...