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
2 answers
Uptime Monitoring solution that opens a constant socket connection?
I want to monitor some servers and some of them have the potential of having very unstable connectivity.
This is because they are located in office locations that only have consumer internet access.
My worries with the usual approach - to have a…

The Shurrican
- 2,240
- 7
- 39
- 60
1
vote
1 answer
Using UNIX sockets with nginx
I would like to clarify some doubts I have about using nginx to proxy requests over a cluster of thin servers (http://code.macournoyer.com/thin/).
I've read many blog posts about using UNIX sockets and not TCP connections, my only doubt is about…

ngw
- 1,261
- 3
- 13
- 15
1
vote
2 answers
phpmyadmin error #2002 cannot connect to mysql server
I am getting the error in the title when trying to connect to my MySQL server. I have reinstalled MySQL and PHP several times and tried a slew of command line work based on information I searched out.
web.mysql is running and I know that my…

Joe
- 111
- 1
- 1
- 3
1
vote
2 answers
Updated MySQL: MySQL Daemon has failed to start
Just updated my MySQL on CentOS when I did yum update. My website threw some MySQL errors and I found out that MySQL wasn't running:
# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Starting MySQL: [FAILED]
I receive this error:
2002:…

Gio Borje
- 149
- 3
- 10
1
vote
1 answer
"Address already in use" error from socket bind, when ports are not being used
I can not bind (using C or python sockets) to any port in the range: 59969-60000
Using lsof, netstat and fuser I do not see any processes using these ports.
Other ports such as 59900-59968 and 60001-60009 I can bind to them.
My OS: is CentOS release…

Ivan Novick
- 181
- 3
- 6
1
vote
2 answers
New to Ruby on Rails, having socket trouble with MySQL (on Mac OS X)
This is my first question on serverfault, although I have used stackoverflow before.
I am in a Ruby on Rails class over this summer and need to get RoR running ASAP. I used MacPorts to install Ruby, Rubygems, Rails, and mysql (I installed two ports…

adam_0
- 113
- 6
1
vote
2 answers
TCP performance differences between RH Linux and Solaris in java?
While comparing java TCP socket performance between RH Linux and Solaris, one of my test is done by using a java client sending strings and reading the replies from a java echo server. I measure the time spent to send and receive the data (i.e. the…

Jul
- 13
- 4
1
vote
1 answer
closing ssh ControlPath
I found the instructions on kerneltrap's mail archive: "scp batch mode?" to be insightful an useful, however when I issue the command to close the connection
# Bring the connection down.
ssh -S /tmp/ssh_socket -O exit dummy
my ssh complains that it…

Chen Levy
- 283
- 3
- 13
1
vote
3 answers
Any tool to test if my program can listen to certain port
OS: Windows Server 2003
Is there any tool that can test if a certain port is available for my program to listen to? Thanks.

Stan
- 1,387
- 6
- 24
- 40
1
vote
5 answers
Lingering tcp connection in LISTEN state
My java application can sometimes be killed by an external script. This can be done either with SIGTERM or with SIGKILL.
The application is a server which receives many connections per second, and it can be killed while trying to serve them.
I would…

Silvio Donnini
- 517
- 1
- 7
- 9
1
vote
1 answer
Socket application failed in NAT
We have a socket application (client and server) which runs in our environment.
In our client site they're using NAT. When I try to connect my client (from a NATed IP in client's NATed environment) to a server in the client's NATed environment, it…
karthik
1
vote
0 answers
clamav-daemon doesn't create /var/run/clamd.ctl
I installed clamav-daemon on Debian 11 and when I try to start it, it doesn't create the LocalSocket /var/run/clamd.ctl.
LocalSocket in my /etc/clamav/clamd.conf:
LocalSocket /var/run/clamav/clamd.ctl
systemctl status clamav-daemon.service…

afriend
- 111
- 2
1
vote
0 answers
Client Listening on 0.0.0.0 when custom network interface doesn't exist?
I'm facing an issue in our environment where I'm starting a ServerSocket (Java), and configuring it to listen on 0.0.0.0.
Then I'm creating a network interface, and my client is attempting to connect to that Socket using the newly created interface…

Aditya Chandel
- 11
- 1
1
vote
1 answer
Which machine is actually closing the TCP socket and why?
I'm working on a C# application, handling TCP sockets.
I have a server application (Hercules) on the remote machine, trying to keep a socket open.
I have my application on my machine, subscribing to that open socket.
I'm using Microsoft's TCPViewer…

Dominique
- 123
- 5
1
vote
0 answers
Reached pm.max_children, High sockets allocated, No CPU usage
The issue
I have a server that reaches pm.max_children (200) without spike in CPU usage. No network traffic (MB out / MB in) but extremely high number of socket allocated that do not get closed.
CPU: 16 Cores
RAM: 64 GB
Pictures from my Prometheus…

Aidvi
- 46
- 5