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

0
votes
1answer
14 views

Where to create an AF_LOCAL/AF_UNIX socket file when not allowed to write in /var/run?

FSH says that socket and pid files should go to /var/run However, for security purpose, only root can creates file and subdirectories in this location. A common solution is creating a subdirectory ...
-1
votes
1answer
31 views

Unable to set TCP_NODELAY with setsockopt on CentOS

The call to setsockopt seems to succeed, but checking with getsockopt shows that TCP_NODELAY has not been set properly. Below is the relevant section of my strace. Am I missing something? ...
0
votes
1answer
25 views

Will internal API calls be treated as DDOS attacks by AWS?

I have a nodejs development server. I am currently running on an AWS EC2 micro AMI. I have a hardware device which continuously submits data to this server via socket. The server then calls an API, ...
0
votes
1answer
22 views

Keep connections of closed instances behind a load balancer

I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem. There are tons of solutions to balance the load between multiple socket ...
-2
votes
1answer
32 views

IP address differences between two computers on the same local network [closed]

Why does the python command print(socket.gethostbyname(socket.gethostname())) give: 192.168.1.4 on my laptop 127.0.1.1 on my Raspberry PI when they're both on the same local network, and the PI's IP ...
0
votes
1answer
37 views

127/8 address is not passed to IP stack?

I send IP/UDP frames using raw sockets with destination IP address from 127/8 range - e.g. 127.0.0.6. So, packets are sent over the network OK (checked using tcpdump on the target device). But on ...
0
votes
0answers
12 views

Route only on output chain?

I have two machines A and B. I want to send iperf traffic from A to B, but first have it route through a userspace program on A. I did this with a tunneling device: therefore, I used the command ip ...
0
votes
0answers
23 views

SYN/ACK not received by iperf client?

I have an application that essentially consists of four components A, B, C, D. A and B are on the same machine - B and C are separate machines. Traffic is generated by an iperf client on A with a ...
2
votes
1answer
123 views

sudo: unable to create sockets: Cannot allocate memory

On a VPS run by OVH (apparently OpenVZ-based, given /proc/user_beancounters exists), with relatively few processes running, trying to sudo gives me the error in the title. Here is a sample ...
0
votes
1answer
48 views

icinga2 mysql connection issue

I followed all the install wizards When setting up icinga2, I have the following error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) ...
0
votes
2answers
71 views

Redirect subdomains to services on different ports of same server

I have a VPS which has 1 IP. If I run two socket servers, one on port 8080 and the other on port 8081, is there a way I can map service1.mydomain.com to the socket server on port 8080 and ...
0
votes
1answer
246 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
0answers
25 views

FTP Server error, A receive socket error occurred

I have a FTP server, Core FTP server, where i get errors for inbound transfers to one of the accounts. The inbound files are only 1k in size. The error occures in 5% of all inbound transfers. Error ...
0
votes
1answer
38 views

How to use non-deprecated tools like ss to get process id running on a port?

I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000 to output information about an active port. Any suggestions on how to use a tool like ss to get the process ...
0
votes
0answers
19 views

What are the minimum permissions for a libpam-ldap unix domain socket?

I'm setting up an LDAP server and libpam-ldap to run on the same host, communicating via a UNIX domain socket. I'd like to give this socket the minimum permissions necessary, so random local users ...
0
votes
2answers
258 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 ...
0
votes
0answers
58 views

wsgi nginx error: permission denied while connecting to upstream

There seem to be a few questions on stackoverflow and serverfault about this but unfortunately nothing has worked for me. I'm getting a 502 bad gateway on nginx, and the following on the logs: ...
0
votes
0answers
50 views

Socket Error 10054 - VS2013 Web Deploy Failing

I'm having trouble completing a web deploy from VS2013 as I posted in VS 2013 Web Deploy failure: Warning : Retrying the sync because a socket error (10054) occurred Apparently web deploy uses port ...
3
votes
1answer
236 views

Nmap external scan shows port open, ASA says port is not open, but do get an socket

Folks, have a weird one, need your expert help. For one of our heavily used external facing server which came up in an audit, nmap -Pn scan shows the following: Starting Nmap 5.51 ... Host ...
1
vote
2answers
105 views

nginx - why i can't use variables in proxy_pass path?

Why i can't use variable $user in proxy_pass - like in example below? server { listen 80; server_name ~^(?P<user>[a-z|A-Z|0-9|_|-]+)\.example\.net$; root /home/$user/webapps/; ...
2
votes
1answer
722 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
90 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
1k 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
561 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
49 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 ...
4
votes
0answers
458 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
233 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
112 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
1answer
138 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 ...
1
vote
0answers
268 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
113 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
130 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
41 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
66 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
137 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
30 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
62 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 -> ...
2
votes
2answers
335 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
554 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
343 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
169 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
215 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
100 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
529 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
567 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
53 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
2answers
291 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
612 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 ...
2
votes
2answers
751 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
588 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 ...