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

1
vote
0answers
20 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 ...
1
vote
0answers
21 views

After sending Duplicate ack by the server, it stop responding [closed]

My TCP client communicates with multiple 3rd TCP servers. However one particular server produces duplicate ack and stop responding in the specific time only. That particular server is OK other time. I ...
0
votes
1answer
83 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
56 views

How to let PHP connect to database by using UNIX socket (Joomla)

I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database. I've already configured the php.ini with: mysqli.default_socket = ...
0
votes
0answers
20 views

How to work whit socket_file httpd (nginx-uwsgi)

I am trying to run Nginx/uWSGI/Django, the last remaining step is to run the socket_file all I get is a 502 Bad Gateway. Route my django application. #/home/deploy/webapps/myapp Configuration ...
3
votes
0answers
130 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 ...
0
votes
1answer
84 views

Can't boot Mysql on Centos 7

I've installed mysql on Centos 7 (mysql-community-server) as root. The problem is that I can't start the daemon with "service mysqld start", It never return me to prompt and even if I try to use ...
0
votes
0answers
46 views

Yet another “Can't connect to local MySQL server through socket” after a security update

SOLVED As yoonix pointed out, it was only an issue with the root partition being full... Thanks for your help! - So yes, this question has been asked several times, here and elsewhere. I apologize ...
0
votes
0answers
35 views

Writing to Unix Domain Socket from rsyslog

I want to write output messages from rsyslog to a Unix Domain Socket. I want to do this so that I can read the messages from that socket using my script and parse log messages further. I try to use ...
0
votes
0answers
164 views

Performance issues with Apache + Django + socket.io (long-polling) + Proxy

I'm trying to set up a website with django, apache and socket.io. Thanks to some tutorials and other stackoverflow questions, I managed to make everything work, except for a severe lag, that occurs ...
2
votes
2answers
79 views

Limit to number of listening ports in linux

I have tried to launch a script to listen to thousands of tcp ports (1000 to 10000) but it appears to be hitting a limit of 1024 listening ports. I've confirmed this via netstat and closed ports above ...
0
votes
0answers
51 views

Nginx websocket proxy incorrect response

I was trying to set up nginx as a proxy to my server (Goliath) which happens to be serving both regular and websocket connections. This is my setup: upstream goliath { server localhost:9696 ...
0
votes
1answer
29 views

same port opened - one on the asterisk (*) address and one on localhost

running on Mac with two jetty instances i've arrived to this peculiar situation: ~$ lsof -ni :9905 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 40320 ******* 394u ...
2
votes
1answer
42 views

php-fpm: What is the bottleneck for accepting connections faster?

On a php5-fpm status page, what is the bottleneck that is preventing my server from accept()'ing new sockets fast enough? pool: www process manager: static start time: ...
0
votes
0answers
71 views

Client can't connect the server using Web Socket Protocol

I have a WebSocket WCF based server. a web (HTML) client is connecting this server using WebSockets. The server worked well with all clients, till we stumble a client, Chrome (And Firefox) running on ...
-2
votes
1answer
17 views

Is it possible to bind a socket with NIC Queue?

when i open a new socket linex system automatically bind it to a NIC queu. Currently i have two sockets and i want to bind them to two different NIC queues. My question is 1)Is it possible to bind ...
0
votes
1answer
40 views

nginx handle multiple locations for one server

I need to setup a virtual host to run my users.example.com website. It needs PHP support via php-fpm. The ideia is to have a mapping like this: users.example.com/~user1/folder/file.php -> ...
1
vote
2answers
110 views

Postfix & Amavis - Use UNIX Soket for Communication

I currently using a complex mailserver setup using Postfix, Dovecot, Amavis and Spamassassin. Everything works fine but I want to improve the Postfix-Amavis-Communication. At the moment, postfix will ...
2
votes
1answer
222 views

SELinux: no audit errors but nginx permission errors

I try to isolate a SELinux problem with nging/munin. I see that error message in "/var/log/nging/error.log": [crit] 8802#0: *55 connect() to unix:/var/run/munin/fcgi-html.sock failed (13: ...
0
votes
1answer
150 views

apache mod proxy_wstunnel invalid utf8 during websocket upgrade

I am experiencing an intermittent problem when connecting the jetty web-socket client to the server. The good people at Jetty assure me it is not a problem with Jetty. On the server side I have ...
3
votes
2answers
75 views

source address with iptables port forwarding

I set up port forwarding for port 80 with iptables: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 10080 Additionally, I have ip forwarding enabled to route connections ...
2
votes
0answers
154 views

How to deploying Node.JS without interrupting service? [closed]

There are some blog posts and questions written about this, but they are mostly from 2010 or 2011, and I was hoping for a more up-to-date (2014 era) answer. I have a pretty standard Node.JS ...
0
votes
0answers
48 views

How do I know the remaining buffer space?

There is a socket error 10055, meaning "No buffer space available". But what is this buffer space and how do I know, how much of it is still available? At the time I've got this error, the server had ...
0
votes
1answer
201 views

Deploying node.js application on Ubuntu VPS

I created an real time android application backed by a node.js application. I use express, socket.io, mongodb and ubuntu for my backend. But my problem is on how I can possibly run it in production or ...
1
vote
1answer
189 views

High # of sockets in TIME-WAIT state, server unresponsive at load

Our app became unresponsive at high loads, with longer wait times. Process usage was abnormally low (~15% CPU utilisation per process, our app runs on 8 processes). Nginx error log output showed a ...
0
votes
0answers
29 views

WinServer 2003 R2: Socket Error#10060

So I inherited a legacy in-house application, that is supposed to have printing functionality. However, whenever a user prints, it conks out with the following error, "Message: Socket Error #10060, ...
1
vote
1answer
124 views

Using nginx to proxy multiple instances of sockets.io

I have two separate node.js applications running behind nginx. Both the apps use socket.io and express. One is served on port 5000 and the other on port 5001. But we need them both accessed through ...
0
votes
1answer
324 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 ...
1
vote
2answers
315 views

Check if a path exceeds maximum for Unix domain socket

Operating systems limit the length of a path of a Unix domain socket. How can I check whether a particular path is within that limit? Or, to put it another way, how can I check the maximum permitted ...
1
vote
1answer
308 views

Milter service needs transport:endpoint instead of “/var/run/opendkim/opendkim.sock”

I have set postfix with milter based on this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy But then posptfix reported that ...
0
votes
1answer
73 views

What better solution to adopt for client server system implementation by java sockets

I need some advice from someone experienced in networking. I have already created a system designed to monitor some tasks (5-30) that are written in java started by a auomatic scheduler or by ...
0
votes
0answers
152 views

novnc apache2 reverse proxy code 1006

I just installed webvirtmgr but the noVNC console is not working (code 1006). The detailed error of the google chrome console is: [blocked] The page at ...
0
votes
1answer
249 views

nginx reverse proxy for websockets with SSL

I am trying to configure nginx (installed via macports) on my osx development machine. I am trying to reverse proxy localhost:12346/trade to a websocket connection which is available on port 12346 at ...
-2
votes
3answers
126 views

understanding resolv.conf nameserver through system calls [closed]

I am trying to understand how /etc/resolv.conf /etc/nsswitch.conf exactly works and what is significance of nameserver entry 127.0.1.1 I did strace ping google.com to get to know about the system ...
-1
votes
1answer
63 views

understanding resolve.conf nameserver through system calls [duplicate]

I am trying to understand how /etc/resolve.conf /etc/nsswitch.conf exactly works and what is significance of nameserver entry 127.0.1.1 I did strace ping google.com to get to know about the system ...
0
votes
1answer
148 views

Connect with Java to Amazon EC2 instances

I have written a client-server application in Java and I want to run it on Amazon EC2 Ubuntu instacnes. The client runs on an EC2 instance and the server on one and the third EC2 instance is for ...
0
votes
0answers
33 views

Network error when running multiple Virtual Boxes

I have a Ubuntu 14.04 physical desktop that's running some Virtual Box instances (also Ubuntu) through Vagrant. The Virtual Box instances are configured to use static ip and with "natdnshostresolver1" ...
0
votes
1answer
95 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
1answer
147 views

How to monitor socket connection usage and exhaustion on a server?

I have a service endpoint (java) that will be getting bursts of thousands of requests per second. In my load testing I had to tweak the server because I would run out of open sockets as there were ...
1
vote
1answer
466 views

NGINX: How to proxy http(s) traffic to one server and ws(s) traffic to another?

I'm new to nginx and how it handles locatoins, and was hoping to get help for a problem I'm having: On the same server I have an Apache web server and a websocket server. Apache works on port 8080 ...
1
vote
2answers
454 views

Send Text String to a Socket In Windows

I have a server that has an open socket that listens for a particular text string on it in order to perform an action. Our linux machines send this data via: echo "text_string" | nc -w 2 ...
0
votes
0answers
52 views

pfctl for diverting socket?

I have been trying to use divert socket with pfctl but no luck yet. Basically, I want to use what I could do with ipfw as below with pfctl: ipfw add divert 5000 ip from any to 4.2.2.4 Now I want to ...
0
votes
2answers
2k views

Configuring port in iptables for websockets

I'm implementing Ratchet's push example in my server (websockets) on port 9090. These are current iptables policies: [root@myserver ~]# iptables -L -n -v Chain INPUT (policy ACCEPT 309 packets, 22420 ...
1
vote
2answers
2k views

What does TCP: too many orphaned sockets mean?

When I use dmesg to look at linux kernel messages, I see a flood of.... TCP: too many orphaned sockets messages. My guess is this is sockets that are hanging around in TIME_WAIT after being closed ...
0
votes
0answers
137 views

FreeBSD jail (ez-jail) “connect: Operation not permitted” ONLY for endpoints routable from a particular interface when jail is bound to a `bridge`

Edit I answered my original question: basically, binding the jail to a bridge interface was the problem. Now my question is, why is this the case? Is there a way to get it to work with a bridge ...
1
vote
0answers
97 views

Can nginx set 'Origin' header when proxing websocket?

We know nginx can proxy WebSocket since version 1.3.13, and we also know some times WebSocket server will valid the 'Origin' header, so someone said you can do something like: proxy_set_header Origin ...
0
votes
0answers
58 views

Single TCP-CLOSE_WAIT connection brings down application till restart

Recently found a behaviour where my application had a connection in TCP Close_wait state till the app was restarted (after about 5 hours). But during this period the SUnreclaim space was also ...
1
vote
2answers
75 views

When a socket switch to TIME_WAIT state, why I can't see its inode number?

I'm developing a program in python that parses /proc/net/tcp informations, but unfortunately, while I was doing this, I saw a strange thing. Practically, when a socket change in TIME_WAIT state, ...
-1
votes
1answer
93 views

KVM unix socket file permission for VNC

I'm using kvm-qemu/libvirtd for a bunch of kvms. I'm using vnc for the graphical interface. By default, it listens on a tcp socket. I want to have it listen on a unix socket instead. Looking at some ...
1
vote
1answer
355 views

Rails application deployment, nginx, unicorn, capistrano socket error

I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page. Nginx log contains: ...