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
5
votes
1 answer
Nmap external scan shows port open, ASA says port is not open, but do get an socket
Folks, have a weird one, need your expert help. For one of our heavily used external facing server which came up in an audit, nmap -Pn scan shows the following:
Starting Nmap 5.51 ...
Host pub.ip is up (0.0032s latency).
Not shown: 993…

user3196304
- 51
- 1
- 4
5
votes
1 answer
How to check if a process is non-blocking in linux without using a stack tracer?
A multi-cpu server is running several processes. One process has a thread that should always be in a spinning state, using 100% of the CPU it's been assigned. My current method (besides asking the developer...) is using strace on the process which…

inetplumber
- 680
- 4
- 9
5
votes
1 answer
Why is there a socket interface on the host and a character device interface on the guest for virtio-serial?
I am trying to establish a communication channel between the host and one of its guest virtual machine using kvm as a hypervisor. For this, I am using virtio-serial.
To create the virtual machine, I issued the following command:
qemu-system-x86_64…

jobin
- 233
- 1
- 3
- 9
5
votes
2 answers
timing issue after route add/delete (route not used)
I have an application that is running a raw IP socket, destination of this socket is governed by routes installed via the 'ip route add' command. These routes can change during the lifetime of a socket (e.g. because next-hop changes)
Simplified,…

KillianDS
- 151
- 4
5
votes
1 answer
Unix socket connection limit
This may appear like an already discussed/answered question. But I am specifically looking for info which I couldn't find anywhere answered clearly.
I have an Nginx + php-fpm setup which uses unix sockets to talk Nginx to backend php-fpm fastcgi…

meharo
- 59
- 1
- 2
5
votes
1 answer
How to debug Node + Socket.io CPU Issues
We are running a Node Socket.io server with Express 3. The server is monitored using Forever. The service is running well, but the CPU grows throughout the day, until it reaches 90%+ and then suddenly drops back down to ~20%, as shown in the graphs…

SteveEdson
- 1,539
- 3
- 12
- 23
5
votes
1 answer
TCP Windows Size vs Socket Buffer Size on Windows
I am new to Windows networking. When people talk about TCP tuning on Windows platform, they always mention about TCP Window Size. I am wondering whether Windows uses the concept of "Socket Buffer Size"?
On Windows XP, the TCP window size is fixed.…

userpal
- 613
- 4
- 10
- 17
5
votes
2 answers
Are there any drawbacks to running memcached on a Unix domain socket instead of the network (assuming one server)?
I’m setting up a Django website to use memcached to cache its pages.
(The content of each page won’t change very often at all, so I’m hoping that most of the site will be served from memcached most of the time, and thus be able to handle a lot of…

Paul D. Waite
- 156
- 1
- 8
5
votes
5 answers
Websockets Server with Fault-Tolerance and Durable Message Store
I am starting to experiment with websockets.
Does anyone know of a websockets server (open source or paid) that provides a durable store of the websocket "channel"? All of the examples that I have found do not address durability -- if a websockets…

smitchell360
- 61
- 1
- 6
5
votes
2 answers
Postgres application tries to use incorrect socket file
I have a local postgres server running (on ubuntu linux). It is listening via a socket file:
$ ls -la /var/run/postgresql/
total 8
drwxrwsrwx 2 postgres postgres 100 2011-04-15 19:06 .
drwxr-xr-x 26 root root 1100 2011-04-15 19:12…

Amandasaurus
- 31,471
- 65
- 192
- 253
4
votes
2 answers
socket.io handshake fails on Google https load balancer
We have the following setup for Google HTTPS load balancer.
Two Frontends:
1. HTTP traffic to static IP
2. HTTPS traffic to the same static IP(DNS configured to a domain name)
Host and Path rules
All going to backend
One Backend:
With HTTP protocol…

Nunna Suma
- 141
- 3
4
votes
1 answer
How to circumvent siege concurrency socket select timed out
Being trying to test load capacity of a web site. I am using an aws ubuntu xenial server t2.micro as test client and have SIEGE 3.0.8 and apache benchmark Version 2.3
while ab -c 100 -n 100000 url completes without an issue thes on the other hand…

black sensei
- 609
- 3
- 10
- 25
4
votes
0 answers
rails server using nginx + puma on ubuntu - suddenly get socket connect failed errors
I have ran jruby on rails in AWS ubuntu trusty 14.04 configuration.
my server was going well during several hours. but suddenly get socket connect failed error.
-nginx error.log
2016/03/12 10:12:10 [error] 28444#0: *256477 connect() to…

mjkim
- 141
- 1
- 3
4
votes
1 answer
uWSGI TCP/IP host:port vs Unix socket
We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection.
Now our uwsgi logs are full of errors like
IOError: write error
SIGPIPE: writing to a closed pipe/socket/fd (probably the client…

Barmi
- 439
- 1
- 6
- 15
4
votes
1 answer
SSL - Apache and Node.js on the same Amazon EC2 instance
I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443.
Currently, I just added a chat application to the website using Node.js + socket.io. The Node.js server listen on port 3333.
How can I…

Danh Nguyen
- 41
- 1
- 2