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
11
votes
2 answers
Check if a path exceeds maximum for Unix domain socket
Operating systems limit the length of a path of a Unix domain socket. How can I check whether a particular path is within that limit?
Or, to put it another way, how can I check the maximum permitted length of a path of a Unix domain socket, on a…

Lorin Hochstein
- 5,028
- 15
- 56
- 72
11
votes
3 answers
What are the ramifications of setting tcp_tw_recycle/reuse to 1?
I set both tcp_tw_recycle/reuse to 1 in my configuration file.
What are the ramifications of doing this?
If a tcp socket is re-used, does that pose a security risk? i.e. 2 different connections both potentially being able to send data in?
Is it…

codecompleting
- 513
- 1
- 4
- 14
10
votes
1 answer
Can't start mysql service
I can't restart my mysql service from my ubuntu server. Here is the error :
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: failed (Result: exit-code)…

Eko
- 209
- 1
- 2
- 3
10
votes
1 answer
Netcat not able to bind a listening socket
In my computer with Ubuntu 14.04 I can do things like this:
$ nc -l 5349 -vvv
Listening on [0.0.0.0] (family 0, port 5349)
or this:
$ nc -vvv -l 192.168.254.96 5349
Listening on [192.168.254.96] (family 0, port 5349)
And a socket is opened to…

logoff
- 255
- 1
- 3
- 12
10
votes
2 answers
What does TCP: too many orphaned sockets mean?
When I use dmesg to look at linux kernel messages, I see a flood of....
TCP: too many orphaned sockets
messages. My guess is this is sockets that are hanging around in TIME_WAIT after being closed that are waiting to be cleared up. I am interested…

andrew pate
- 271
- 1
- 2
- 6
10
votes
1 answer
Create a link to the Unix socket
Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted environment.
The only idea I'm coming across is to use…

eRIZ
- 220
- 2
- 10
10
votes
3 answers
Running a websocket server and a http server on the same server
I am using nginx to to serve an instance of PHP application, and also at the same time running a Ratchet app to listen to a websocket connection. Problem is, both of these instance are using the same port (80).
How do I set up the server so that I…

hndr
- 412
- 1
- 5
- 10
10
votes
2 answers
Where are my TIME_WAITs on Mac OS X?
No TIME_WAITs on Mac OS X
Normally, when a TCP connection is closed, the socket on the side where close() is called first is left in the TIME_WAIT state.
When one of the peers is a Mac OS X (Lion) machine, no TIME_WAIT is listed by netstat -an on…

mgd
- 267
- 1
- 3
- 9
10
votes
3 answers
Is there any javascript ssh client?
I mean pure javascript client that uses HTML5 sockets and doesn't need to be installed, just open single js file in browser. Is it possible to write such client at all?

Poma
- 1,299
- 6
- 24
- 35
10
votes
5 answers
How to determine number of open sockets? VM Resource Issues
I've got a MediaTemple DV server. I've been seeing a lot of QOS alerts for "numothersock" which is defined as:
The number of sockets other than TCP ones. Local (UNIX-domain) sockets
are used for communications inside the system. UDP sockets are…

Encoderer
- 267
- 1
- 2
- 11
10
votes
2 answers
TIME_WAIT consumes file descriptors?
In many TCPIP and Web tunning guide, recommends increasing max number of file descriptors
when getting the error "Too many open files"
but, i can't see TIME_WAIT in outputs of "lsof -i"
Does anyone know that TIME_WAIT consumes file descriptors? or…
sam
9
votes
1 answer
Connect to Milter service unix:/var/run/opendkim/opendkim.sock: No such file or directory
I've just been moving a postfix mail server to a different box, and I'm having trouble getting postfix to talk opendkim via a unix socket. The opendkim socket is located at /var/run/opendkim/opendkim.sock:
srwxrwxr-x 1 opendkim opendkim 0 Aug 14…

starbeamrainbowlabs
- 353
- 1
- 7
- 16
9
votes
4 answers
how to measure MB/sec on specific socket
We have a web tier where once in a while a web node will slam our data nodes(plural) and if we could see the MB/second coming into that machine on all sockets or on individual sockets, we could immediately know which web node started to have a huge…

Dean Hiller
- 911
- 4
- 15
- 35
9
votes
7 answers
ERROR 2002 MYSQL socket /tmp/mysql.sock
A have already read everything about this error but I coundn't solve the problem.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
I'm trying to install mysql on my Mac OsX but when I try to connect to…

Rafael Pontes
- 93
- 1
- 1
- 3
9
votes
1 answer
Killing CLOSE_WAIT sockets without killing parent process on Linux
Tomcat is leaving me with CLOSE_WAIT sockets which ultimately saturate the maximum number of connections.
I've tried many methods in my client and server code to get rid of these to no avail, including closing connections, calling System.gc(),…

Alex Neth
- 191
- 1
- 1
- 2