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

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 ...
5
votes
1answer
215 views

timing issue after route add/delete (route not used)

I have an application that is running a raw IP socket, destination of this socket is governed by routes installed via the 'ip route add' command. These routes can change during the lifetime of a ...
4
votes
1answer
864 views

Unix socket connection limit

This may appear like an already discussed/answered question. But I am specifically looking for info which I couldn't find anywhere answered clearly. I have an Nginx + php-fpm setup which uses unix ...
3
votes
1answer
890 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 ...
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 ...
4
votes
0answers
519 views

mysql client slow login strace

I am experiencing an issue with slow connections/logins to a loaded mysql server, even when connecting via the unix socket file (CentOS 6.3). Queries are completing very quickly -- (0.00 sec) in this ...
2
votes
0answers
36 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 ...
2
votes
0answers
198 views

SSL - Apache and Node.js on the same Amazon EC2 instance

I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443. Currently, I just added a chat application to the website using Node.js + socket.io. ...
2
votes
0answers
268 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 ...
2
votes
0answers
3k views

Nginx websocket 502 bad gateway

I'm trying to use nginx as proxy for websocket nodejs server, but I'm always getting 502 bad gateway. my domain config: upstream server { server 127.0.0.1:8090; } server { listen 8085; ...
2
votes
0answers
428 views

How to deploy a WebSocket application without downtime?

Deploying HTTP applications without downtime isn't that hard: HTTP is stateless, so with a load balancer in front of 2 HTTP applications solves the problem. If both applications use a common backend ...
2
votes
0answers
297 views

what can put linux process managing connection pool into bad state, so it restarts them continously?

I have an application with pool of connections to MySQL. At some point, in production, every 1-3 seconds some socket is closed. As a result my app restarts this connection. This is pretty big pool ...
2
votes
0answers
1k views

windows server 2003 socket connections limit

I'm trying to establish many(the more - the merrier) socket connections on Windows 2003 server. I make several server sockets and connect to them from current computer (1 server socket serves 1 ...
1
vote
0answers
234 views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
1
vote
0answers
10 views

Php-fpm corrupts my socket permission on startup

I've installed Apache2.2 with FastCgi module, and PHP-fpm on a Centos server. I configure FastCgi with an external server using the socket option: FastCgiExternalServer ...
1
vote
0answers
89 views

Wireshark RST against TCP Zero Window

During application sharing with Microsoft Lync Client (Mac OS X), TCP ACK with RST flag is sent from my application end to Lync end against TCP Zero Window packets and call gets dropped. Image Link. ...
1
vote
0answers
300 views

Can't connect to (or write to) a socket file, despite being owner?

I am working on Debian Jessie with Django 1.8, trying to set up Gunicorn to run my Django site. I have made a user called opuser, and made this user the owner of the gunicorn.sock file and of the ...
1
vote
0answers
452 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 ...
1
vote
0answers
194 views

Weird socket behavior in VirtualBox (NAT + PAT)?

I have a Linux VM with NAT and PAT configured. Let's say ports 2000 and 2001 are forwarded to the VM. These ports are also configured for external access on a device such as a router using a domain ...
1
vote
0answers
571 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
1
vote
0answers
412 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 ...
1
vote
0answers
404 views

UDP socket receive buffer size change on RHEL6.3

Our system used to work on RHEL5.3 And the socket receive buffer size is 64k. And that works fine. We can get message size up to 64k on UDP socket. But after system upgrade, it is running on RHEL6.3 ...
1
vote
0answers
399 views

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

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

How to troubleshoot intermittent winsock 10054 errors on Windows Server 2003 SP2

We are getting 10054 errors in a couple of our applications on one server running Windows Server 2003 SP2. This happens intermittently, and we also have other similar servers running the same ...
1
vote
0answers
162 views

Whats going on with mySQL

I am trying to install this application named socialengine and all is going well except on the mysql screen i keep getting this error The MySQL storage engine is not installed. I notice my sock ...
1
vote
0answers
277 views

Heavily loaded ubuntu machine connection timeout

I've got a webserver running Ubuntu 10.04 Server edition (on rackspace cloud), running nginx and jetty. It's under quite a bit of load (60-70 requests/sec or so successful). Nginx is proxying requests ...
0
votes
0answers
9 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
69 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
19 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$ { ...
0
votes
0answers
29 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, ...
0
votes
0answers
136 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
12 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
35 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
0answers
301 views

Docker: Nginx and hhvm socket configuration returns 502 Bad Gateway

I am trying to run nginx and hhvm with docker-compose and socket file configuration but it returns a 502 error. I can access to conf/hhvm/run/ from nginx and hhvm image. In the error.log nginx's file ...
0
votes
0answers
384 views

nginx - open() failed (2: No such file or directory)

Our ubuntu server running nginx and uwsgi is causing lot's of open() failed (2: No such file or directory) errors by ngnix. Some web pages loading slowely or do not load completely. It seems to ...
0
votes
0answers
94 views

nginx won't connect to my socket due to insufficient permissions

I have the following setup for nginx and uwsgi to serve a cgit instance. # cat /etc/uwsgi.d/cgit.ini [uwsgi] plugins = cgi uid = nginx gid = nginx socket = /srv/http/cgit/cgit.sock ...
0
votes
0answers
95 views

Setting up phpMyAdmin on a 1&1 Managed Dedicated Server

I'm trying to set up phpMyAdmin on my Managed Dedi Server from 1&1 so that I don't have to log into my 1&1 Account to access the databases / so that my developers don't have to know my account ...
0
votes
0answers
20 views

Could dhclient be causing haproxy to stop listening?

I've noticed every 7 days HAProxy stops responding to requests correctly - it automatically makes firefox download a blank file in place of the website. Upon inspecting the server - everything seems ...
0
votes
0answers
118 views

Limit nginx' simultaneous connections to an upstream server

My setup consists of an nginx server and a Node.js upstream server. How can I limit the number of connections between nginx and the upstream server? The intended behavior is: nginx keeps exactly n ...
0
votes
0answers
64 views

zabbix_agent + socat hanging with close_wait

I have the following setup: remote devices running active zabbix_agentd (version 2.0) using socat to tunnel through an HTTPS proxy. On the server side: Apache with a proxy service allowing CONNECT to ...
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
108 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 ...
0
votes
0answers
89 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
0answers
29 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
0answers
251 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
218 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
0answers
86 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
votes
0answers
39 views

mount docker in container as non root user

I try to mount docker sockets to my container and use it without being the root-user inside my container on Docker 1.11.1. First I tried it as root user: docker run -d \ -v ...