Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

8
votes
0answers
102 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
4
votes
0answers
824 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 ...
4
votes
0answers
6k 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; ...
4
votes
0answers
724 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 ...
3
votes
0answers
219 views

Firewall : Is inbound required for getting response while Outbound rule already there?

I developed one MVC web application which have Web APIs and hosted in Amazon Instance and one windows application for calling those APIs for getting response from that server. Both Web and Windows ...
3
votes
0answers
2k 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 ...
3
votes
0answers
885 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 ...
3
votes
0answers
1k 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
2k 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 [...
2
votes
0answers
1k 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 ...
2
votes
0answers
412 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
2k 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
131 views

systemd: Shutdown socket-activated service / disable socket-activation

I have an HTTP service (let's call it Foo) with systemd socket activation. I would like to support this setup: monitoring service tells Foo to stop (e.g. POST /stop) Foo finishes it's (potentially ...
1
vote
0answers
21 views

Socket usage with Linux

I am wondering, does anyone know if there is a setting within linux that designates the max amount of time a socket is allowed open? I ask this because for whatever reason, no matter if there is data ...
1
vote
0answers
193 views

uwsgi socket 0 bound to TCP address

I have run docker build -t and created image and latter container.Now I am looking at my docker logs uWSGI http bound on 0.0.0.0:9090 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:32824 (port ...
1
vote
0answers
1k views

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [...
1
vote
0answers
24 views

Requests timeout when made from outside the LAN

We are a small company that has an Android app backed by 3 servers running Proxmox. All the connections use HTTPS. The problem we are experiencing is the following: connections made from outside the ...
1
vote
0answers
547 views

Getting systemd-journald (219) to listen somewhere other than /dev/log

I would like systemd-journald in systemd 219 (on el7, so the package is systemd-219-30.el7_3.9.x86_64) to listen for syslog messages on /run/systemd/journal/dev-log, and have /dev/log be a symlink to ...
1
vote
0answers
484 views

Issue deploying Flask Rest Api on Nginx

I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial ...
1
vote
0answers
732 views

Reaching maximum TIME_WAIT sockets (tried tcp_fin_timeout)

tl;dr: How do i get the kernel to drop TIME_WAIT/closing sockets as forcibly and fast as possible? I don't care about data being lost since I'm not sending any. I'm currently running a little test ...
1
vote
0answers
194 views

s3 logs - What are these values?

I am trying to figure out why I am having a lot of socket timeout errors when running serverless deploy -v - https://github.com/serverless/serverless I enabled logging on the S3 bucket that the error ...
1
vote
0answers
1k views

Apache - a sudden “Too many open files”

So we have an apache server running in Linux with no issue. Yesterday we made a server restart and since then we noticed that the number of open files by the apache processes is keeping increasing ...
1
vote
0answers
52 views

No buffer available on Debian-Machine

I'm running a LAMP-Stack on a debian machine for a while now. I configured it the way I'm used to, which never produced weird network or memory issues. On random days at random time I'm getting a ...
1
vote
0answers
48 views

mysql wont connect to symlinked socket when given full path, but connects with relative

So I'm super confused. I have a test build that started breaking because a mysql socket was attempting to be created in such a deeply nested folder that its file path name exceeded the 108 character ...
1
vote
0answers
36 views

How to cope with only one SMTP socket open simultaneously on VPS?

I own a VPS used for hosting about 30 domains. On each domain I have several email accounts. In total more than 150 accounts. In the last couple of weeks, I noticed that sometimes (several times a day,...
1
vote
0answers
456 views

What SELinux type should I apply on my Unix socket?

I have a Gunicorn socket file: /opt/rtd/gunicorn/run.sock. I need nginx to be able to open this socket and write to it. When I run sesearch --allow -s httpd_t | grep unix_stream_socket I noticed that ...
1
vote
0answers
1k views

Troubleshooting connection timeouts and SYN_RECV

My DigitalOcean droplet fails very often to connect to different resources, like making a REST call with curl or establish SSH connection. Every time it happens, I can see sockets with SYN_RECV state ...
1
vote
0answers
1k 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$ { ...
1
vote
0answers
2k 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 ...
1
vote
0answers
29 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 /var/www/cgi-bin/test/php....
1
vote
0answers
479 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 procname-...
1
vote
0answers
273 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
2k 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
0answers
358 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
1k 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
603 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
847 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
337 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
371 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
167 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
314 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 ...
1
vote
0answers
1k views

Effect of NonBlockingSendSpecialBuffering setting on Windows

Recently I ran into some issue related to the UDP sending on Windows. When the application tries to send the packets over UDP in non-blocking mode, often it received socket error 10035 (...
0
votes
0answers
25 views

PHP-FPM doesn't create the socket when run as non root user

I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created. Here are my config files : www.conf [www] listen =...
0
votes
0answers
26 views

Not getting BGP Notification with Optional Attribute Error

i am working with BGP implementation with Ubuntu, for the testing purpose i want to get 'notification message' indicating 'optional attribute error'. i am using python socket programming.here in my ...
0
votes
0answers
22 views

Measuring Size of received UDP packet on port?

I would like to measure the size of a RECEIVED UDP packet on one of my ports. I have an application sending some binary data and I would like to measure the UDP packet size on the received end. I ...
0
votes
0answers
32 views

Mirror local-connection-only port to any-connection network port

I have two containers; producer and consumer on the default bridge network with docker-compose. producer has a service running on a local socket and consumer cannot access it. I need to mirror a ...
0
votes
0answers
33 views

PDO to mysql socket connetion trouble

I try to connect to mysql (mariadb) via socket connetcion. I have created the mysql user via unix_socket identification. Also I have given some privileges to the test db. I wrote the conn.php file as:...
0
votes
0answers
164 views

Nginx as Reverse Proxy for multiple servers binded to proxy using UNIX sockets - how to reached in LAN

I am trying to configure nginx as a reverse proxy for multiple servers on my LAN. They should go out on my WAN with different subdomains. Unlike the approach described in Use Nginx as Reverse Proxy ...
0
votes
0answers
19 views

Denial of service attack on a publisher application

I have an application that is bound to a socket which is used only for publishing some data to other applications on the receiving end. I am looking for scenarios for denial of service attacks on such ...
0
votes
0answers
68 views

Glassfish crashes due too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...