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
4
votes
2 answers
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[a-z|A-Z|0-9|_|-]+)\.example\.net$;
root /home/$user/webapps/;
location /app/ {
proxy_set_header…

Abc Xyz
- 608
- 1
- 8
- 17
4
votes
1 answer
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 number of these:
2014/12/04 03:39:31 [crit] 24383#0:…

Julian H. Lam
- 277
- 4
- 13
4
votes
2 answers
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 port 80 so that when a client accesses…

BarthesSimpson
- 143
- 1
- 1
- 6
4
votes
0 answers
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 "";
render the origin header to null, but I test…

pingz
- 213
- 1
- 6
4
votes
0 answers
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;
server_name server.cz server;
ssl on;
#ssl_certificate…

zajca
- 203
- 1
- 3
- 7
4
votes
2 answers
nginx proxying websockets, must be missing something
I have a basic chat app written in node.js using express and socket.io; it works fine when connecting directly to node on port 3000
But doesn't work when I try to use nginx v1.4.2 as a proxy.
I start off using the connection map
map $http_upgrade…

CodeMonkey
- 173
- 1
- 2
- 7
4
votes
0 answers
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 case -- but the login takes up to several…

carillonator
- 815
- 3
- 12
- 22
4
votes
1 answer
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 open file limit
that has been already done on the…

mlaug
- 202
- 1
- 4
- 12
4
votes
1 answer
Folder disappearing from /var/run upon reboot with Ubuntu 12.04
I'm running php5-fpm on Ubuntu using a UNIX socket at /var/run/php5-fpm/www.conf.sock. During the installation I have created manually the php5-fpm folder inside /var/run/ so that php5-fpm could create its socket in it, which it can. The problem is…

Max
- 3,523
- 16
- 53
- 71
4
votes
3 answers
Why is my RapidSSL Certificate chain is not trusted on ubuntu?
I have a website that works perfectly with Chrome & other browser but i get some errors with PHP in CLI mode so i'm investigating it, running this:
openssl s_client -showcerts -verify 32 -connect dev.carlipa-online.com:443
Quite suprisingly my…

Olivier
- 415
- 3
- 5
- 15
4
votes
1 answer
Is there a way to show list of all open sockets on a Windows server and the socket properties?
We are using a third party library in one of our applications. We would like to find a tool which will list all of the open sockets on the machine AND give us the ability to see the various TCP properties associated with the socket suck…

Benjamin Peikes
- 1,094
- 3
- 16
- 26
4
votes
2 answers
Exhausting Linux machine TCP socket limit (~70k)?
I am the founder of torservers.net, a non-profit that runs Tor exit nodes. We have a number of machines on Gbit connectivity and multiple IPs, and we seem to be hitting a limit of open TCP sockets across all those machines. We're hovering around…

mo.
- 78
- 1
- 1
- 6
4
votes
1 answer
Set up websocket server on Amazon Linux AMI using Node.js
I have been having issues for a few days trying to set up a simple websocket server on an Amazon EC2 instance. I am using a micro instance of Linux. After booting up for the first time, I updated all OS packages, followed this great guide for…

brodney
- 143
- 1
- 4
4
votes
1 answer
Determine if TCP socket is in kernel-space
I have no problem finding out if a socket belongs to user space - I simply scan /proc/ to see which PID owns the [socket]. But with TCP sockets open in the kernel space there is no entry in /proc/ (since kernel has no PID).
I assume that it is not…

abirvalg
- 41
- 2
4
votes
2 answers
Why can't I attach a screen session
I've got a screen session running which I would like to :quit, but I can't because when I try to re-attach, I get an error saying it can't open my terminal. I'm sure I could kill the daemon or something, but I need to learn the "right" way, as well…

Daniel B.
- 725
- 7
- 16