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
0 answers
Getting systemd-journald (219) to listen somewhere other than /dev/log
I would like systemd-journald in systemd 219 (on el7, so the package is systemd-219-30.el7_3.9.x86_64) to listen for syslog messages on /run/systemd/journal/dev-log, and have /dev/log be a symlink to that file. This is the default behavior of more…

larsks
- 43,623
- 14
- 121
- 180
2
votes
0 answers
Reaching maximum TIME_WAIT sockets (tried tcp_fin_timeout)
tl;dr: How do i get the kernel to drop TIME_WAIT/closing sockets as forcibly and fast as possible? I don't care about data being lost since I'm not sending any.
I'm currently running a little test scenario on a very isolated machine.
I'm running…

Torxed
- 225
- 1
- 5
- 18
2
votes
2 answers
Maximum number of sockets per server?
Pardon me if this question doesn't make sense! Is there any theoretical limit for the number of sockets that can be used simultaneously ? As per my understanding sockets are bound to ports and ports can have a value up to 65535, is this the…

akhilbaai
- 21
- 1
- 3
2
votes
1 answer
Why is my unix socket created with a different ACL mask to other files?
I am deploying an Nodejs Express app. It is going to run as on the same box as an Nginx server, which will proxy requests to it via a unix socket. The question is not specific to Nodejs, however.
The express app runs as user nodejs, and nginx runs…

Jarrad
- 123
- 4
2
votes
1 answer
Is it safe to pass my ssl key and cert files to socket.io?
I'm building a web chat using socket.io
In order to communicate on port 3000 through https I need to pass my ssl key and cert files.
Socket.io is an open source and I don't know how trustworthy it is to allow it to access such secured files as my…

Niv Apo
- 121
- 2
2
votes
3 answers
PHP7.0-FPM and Nginx don't work using unix sockets
I have a trouble that is not described in the web. I am using VPS Debian 8 Nginx + PHP7.0-FPM. My server gives php-files in a source code and does not compile them when I configure Nginx and PHP7.0-FPM to use unix sockets (I do it cause I've read it…

tlito
- 131
- 1
- 3
2
votes
1 answer
Socket TCP server w/ high RTT and retransmissions
I have a TCP server built with sockets in Python. The application I'm building is time-sensitive, so the integrity of the data is important, therefore we need TCP. The bandwidth is very low.
And there's a client which requests data from the server…

Robert Lucian Chiriac
- 123
- 1
- 5
2
votes
0 answers
400 Bad Request while creating websocket between client and nodejs with Nginx as reverse proxy
I am trying to create a websocket using Nginx as a reverse proxy and nodejs at the back. I'm using ws library in nodejs. When I test it using wscat tool everything works fine but as I make request from browser, I'm continuously receiving 400 : Bad…

Satys
- 183
- 1
- 2
- 11
2
votes
2 answers
Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock
I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive.
For neatness sake I thought it'd be nice to place the tmpdir and socket on this new hard drive.
Everything works as planned, until I…

Arth
- 365
- 1
- 5
- 15
2
votes
2 answers
Do network administrators block outgoing traffic to not-well-know ports?
I've written a Java server to listen on port 49474. My client runs on Android phones all over the US. Of course, they will be connecting from a variety of networks: home, work, school, library, McDonalds. The traffic between the server and client…

Joe
- 131
- 4
2
votes
1 answer
127/8 address is not passed to IP stack?
I send IP/UDP frames using raw sockets with destination IP address from 127/8 range - e.g. 127.0.0.6. So, packets are sent over the network OK (checked using tcpdump on the target device).
But on the target linux PC such frames are not processed,…

Sergey Ch.
- 23
- 2
2
votes
1 answer
How to use non-deprecated tools like ss to get process id running on a port?
I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000 to output information about an active port. Any suggestions on how to use a tool like ss to get the process id?
I have a localhost running on port 8000, but…

modulitos
- 335
- 1
- 3
- 16
2
votes
2 answers
Limit to number of listening ports in linux
I have tried to launch a script to listen to thousands of tcp ports (1000 to 10000) but it appears to be hitting a limit of 1024 listening ports. I've confirmed this via netstat and closed ports above certain ranges.
Is there a fixed limit of…

loloy.batoytoy
- 53
- 4
2
votes
1 answer
php-fpm: What is the bottleneck for accepting connections faster?
On a php5-fpm status page, what is the bottleneck that is preventing my server from accept()'ing new sockets fast enough?
pool: www
process manager: static
start time: 20/Jan/2015:16:37:18 +0000
start since: …

A.B. Carroll
- 545
- 1
- 4
- 11
2
votes
1 answer
SELinux: no audit errors but nginx permission errors
I try to isolate a SELinux problem with nging/munin. I see that error message in "/var/log/nging/error.log":
[crit] 8802#0: *55 connect() to unix:/var/run/munin/fcgi-html.sock
failed (13: Permission denied) while connecting to upstream, client:
…

Lutz Reinhardt
- 168
- 7