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.
Questions tagged [socket]
564 questions
1
vote
1 answer
php-fpm + persistent sockets = 502 bad gateway
Put on your reading glasses - this will be a long-ish one.
First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an fwrite/fread cycle takes another 300ms. To reduce…

leeoniya
- 147
- 1
- 6
1
vote
0 answers
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 the FastCGI server open while they are active.…

julkiewicz
- 141
- 2
- 7
1
vote
1 answer
Do keepalives to socket connections exist?
Pre briefing:
Although my question is broad on purpose, I am dealing with nginx connecting to php-fpm (fcgi), which is served via a local socket (/tmp/somesocket.socket).
Nginx has a setting to keepalive connections to fcgi backends (…

anonymous-one
- 1,018
- 7
- 27
- 43
1
vote
1 answer
Nginx proxying websockets, connections not closed
I'm confused about where the problem is located, but basically I have nginx proxying websocket connections to a backend ruby thin server, which services the connections with the websocket-rails module in a Ruby on Rails application. Which all works…

Flemming Funch
- 121
- 5
1
vote
0 answers
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 launch and would be required to have SSL…

jesseniem
- 21
- 5
1
vote
1 answer
Socket based byte counts
I see a lot of tools to get the RX and TX byte counts for transmission on interfaces, is there any tool/program that I can use to get a total transmitted byte count for a single specified socket?
I'm trying to limit users' use of the service, i.e.…

Jon Weldon
- 13
- 3
1
vote
2 answers
TCP vs UDP Error-Checking
I've bounced upon two articles that describe in-depth on how TCP and UDP connections work. However there is some kind of inconsistency. Where one article tells me that UDP does no Error-Checking at all, the other article mentions that UDP Does some…

Dempsey FoxDie Van Assche
- 157
- 1
- 5
1
vote
2 answers
How to diagnose large number of TIME_WAIT connections
We have a production issue with only one of our servers and have correlated slow performance to an abundance of sockets in the TIME_WAIT state. Without drawing this question into a huge backstory, we basically know that every time the server is…

Mara
- 139
- 1
- 11
1
vote
2 answers
Linux server resend SYN ACK
I am troubleshooting a connection timeout problem between two Linux boxes, where it seems the ACK to SYN-ACK was lost on the server's stack.
The tcpdump is done on the server side.
The client got syn-ack, sent ACK and data packet, and resent data 4…

wilsonh
- 11
- 1
- 3
1
vote
1 answer
How to determine which direction to scale a web application
I am currently developing a web application and am trying to figure out the best way to host it. I've looked around, used dozens of different phrasings, read hundreds of posts and comments. but none of them seem to answer this particular aspect of…

Ryex
- 11
- 2
1
vote
1 answer
NGINX 1.3.14 proxy Websockets
Websocket support is built in to Nginx as of 1.3.13, so I should have it.
Can someone please provide me the simplest example of a config that will allow my nginx (on Centos 6) proxy to accept an HTTP Connect from my client, then the proxy will…
user160910
1
vote
1 answer
Inject packet to a different NFQUEUE
I have an NFQUEUE, for IPv6 packets hooked to PREROUTING chain of mangle table in ip6tables.
Once I receive a packet in user application, I modified the header. Infact, modified the header from IPv6 to IPv4 and reinjected the packet. But, from the…

Aditya Kanchibhotla
- 11
- 3
1
vote
1 answer
Websockets not working (ssl acceleration?)
Testing a socket.io application in the PROD environment for the first time, we found that while the xhr-polling transport (Ajax long polling) works, the websocket transport does not.
Looking at the data transmitted using Fiddler, I can see that…

Evgeniy Berezovsky
- 861
- 1
- 8
- 27
1
vote
1 answer
How to forward a server socket to a (possibly ssh) client
I'm wondering if/how I can realize the following setup. It doesn't seem to fit the standard ssh port forwarding model.
I have a client machine A. I have a server application running on machine A, which listens on port X. However, machine A is behind…

Morty
- 123
- 5
1
vote
1 answer
Access denied to mysql cause by invalid server hostname bind address
I cannot login to mysql using the terminal.
[root@fst mysql]# mysql -h localhost -u admin -p
Enter password:
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
I am sure I have the correct password. The mysql is…

Pelang
- 413
- 5
- 9
- 15