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
2
votes
1 answer
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 it can't connect to milter on that socket
I…

Anom
- 111
- 2
- 3
2
votes
1 answer
nginx reverse proxy for websockets with SSL
I am trying to configure nginx (installed via macports) on my osx development machine. I am trying to reverse proxy localhost:12346/trade to a websocket connection which is available on port 12346 at /trade on a remote machine.
I am using the…

domoarigato
- 221
- 3
- 4
2
votes
1 answer
How to monitor socket connection usage and exhaustion on a server?
I have a service endpoint (java) that will be getting bursts of thousands of requests per second.
In my load testing I had to tweak the server because I would run out of open sockets as there were many stuck in various status levels similiar to: How…

public static
- 121
- 1
- 3
2
votes
1 answer
Can HAProxy reconnect a websocket to another backend server transparently?
I'm new to HAProxy so this might have an obvious answer but I wasn't able to find it.
Consider this setup:
two backend web applications;
one HAProxy in front of the web applications;
many clients with websocket capable browsers;
A client opens a…

bdem
- 121
- 3
2
votes
1 answer
How do you control the file ownership of a socket managed by launchd
I'm working on writing a daemon that talks to other daemons in the same project over UNIX sockets. For security purposes, it's critical that these daemons only talk amongst themselves (and can't, for example, be connected to by other processes).
I…

Stephen Touset
- 153
- 6
2
votes
1 answer
Linux: Determining memory used by all connected socket send buffers
Is there a way, on Redhat Linux, to determine the total amount of "real" memory that is being allocated to the send buffers for all currently connected sockets? I am troubleshooting a potential memory leak in a Java project, and am curious how send…

DivideByHero
- 371
- 1
- 3
- 8
2
votes
1 answer
Cannot get Web Sockets to work with virtual IP redirection
I can't get Web Sockets to work on my site when I access it via its virtual IP. If I use it's real (intranet) IP, everything works perfectly. If I use the virtual IP, I get this on Google Chrome console:
SignalR: Connecting to websocket endpoint…

Luis Ferrao
- 131
- 1
- 5
2
votes
1 answer
Uwsgi - Socket file or URL
I was installing UWSGI and it looks like for the socket I can specify either a URL and port or instead I can specify a socket location file.
I was wondering if anyone can tell me what the difference is between these two, and if one is preferable to…

J.Zil
- 1,123
- 3
- 21
- 29
2
votes
1 answer
Unable to access 3ware 3dm2 web interface, failed to start listening socket
I am unable to get to the 3ware 3dm2 web interface. When I attempt to execute 3dm2 from the command line, i get the following error "(0x0C:0x0005): Failed to start listening socket". This was working years ago, but now that I'm trying to access it…

harmonic
- 63
- 1
- 4
2
votes
1 answer
How to open a port below 1024 in Cent OS for socket.io?
I'm trying to open port 843 in my Cent OS 5.2, I added following line to etc\sysconfig\iptables :
-A INPUT -p tcp --dport 843 -j ACCEPT
and then updated my iptables service. I need to listen to that port in my node.js application which is running…

Nasser Torabzade
- 153
- 1
- 7
2
votes
2 answers
On Linux, is there a configurable socket timeout between kernel and user space?
I'm currently fighting with some crappy piece of (custom) server software which doesn't accept its connections properly (written in Java by a PHP programmer who never before touched sockets let alone threads). My guess is that a thread is dying…

mss
- 435
- 1
- 6
- 16
2
votes
1 answer
Apache server : Reverse proxy and websockets via mod_proxy_wstunnel
I have a little problem with the web sockets and my reverse proxy apache, i have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel.
The httpd.conf :
ServerAdmin webmaster@localhost
ServerName…

WhatsUp
- 125
- 2
- 2
- 5
2
votes
1 answer
high traffic websocket/haproxy tuning
i have a pubsub application (mostly chat but some other goodies being pub-ed and sub-ed too) running on node & socket.io.
i'm load testing this app by spinning up some other, real large, boxes and running a node app i wrote for this purpose that…

hackerhasid
- 309
- 1
- 4
- 9
2
votes
1 answer
How to create a socket with mknod correctly?
I try to create a socket for communication between uwsgi and nginx.
The difficulty is that I don't know what major and minor numbers I should specify:
v:/tmp# mknod wsgi_pgame.sock c
mknod: missing operand after `c'
Special files require major and…

sergzach
- 135
- 1
- 2
- 8
2
votes
1 answer
Tuning tcp_keepalive_time for Node.js leak
I'm currently having a socket leak with my Node.js application.
This bug is also posted here.
I hope to fix this soon. CLOSE_WAIT and FIN_WAIT2 seem to be the major problem.
Connections: 1662
ESTABLISHED: 238
CLOSE_WAIT: 770
FIN_WAIT1: …

Martin
- 177
- 2
- 10