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
2 answers
Websockets and Firewall
I asked this question on Stack Overflow first, but then I thought Server Fault could be a better place to post it.
I have two WebSocket servers both running on different ports than 80 and 443. These two servers are running behind a firewall which…

mrz
- 237
- 1
- 10
2
votes
0 answers
what can put linux process managing connection pool into bad state, so it restarts them continously?
I have an application with pool of connections to MySQL. At some point, in production, every 1-3 seconds some socket is closed. As a result my app restarts this connection.
This is pretty big pool of 30 connections / application server talking to…

user1971693
- 21
- 1
2
votes
1 answer
What is the most efficient way to connect my application on one VM to my Postgres DB on another VM?
I have 1 physical machine with 2 VMs (VMWare esxi) - one for database (PostgreSQL 9.2.1), and one for application. I'd like my application to connect to my database in an efficient way, and I've heard that using a file system socket is more…

orokusaki
- 2,763
- 4
- 32
- 43
2
votes
2 answers
Redirect websockets to port?
So, I've got a WebSocket server in C++, that is a completely stand-alone entity - handles header parsing, receiving, sending, all of it on its own, listening directly to the port.
Problem is, it needs to run on a server alongside Apache, and that's…

DigitalMan
- 179
- 1
- 9
2
votes
1 answer
clamd says socket in use by another process but I can't find one
I'm running CentOS 5.3 (Final) and using rpmforge I installed clamd and prereqs ok. I started clamd and ran a freshclam all ok. But if I run "clamd PING" or clamd /path/to/file I get
ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock is in use…

dannix
- 97
- 1
- 1
- 10
2
votes
2 answers
What should be proper permission of unix socket?
I have set up nginx to connect to php5-fpm through unix socket instead of tcp. I've read that this has less overhead and hence boost performance. Now I'm wondering what should be the proper permission of the socket to avoid security issues?

wbad
- 187
- 2
- 7
2
votes
2 answers
Sar: what does totsck stand for
I'm looking for an explanation of the totsck column for the "sar -n SOCK" output
09:44:06 PM totsck tcpsck udpsck rawsck ip-frag tcp-tw
09:44:09 PM 580 18 5 0 0 1
09:44:10 PM 580 …

moodywoody
- 123
- 1
- 11
2
votes
2 answers
vmware virtual sockets vs cores per socket
VMware configuration give me various options for upgrade the cpu of the virtual machine.
Number of virtual sockets
Number of cores per socket
If I need 4 cpu in my linux box, which is better for perfomance, 4x1, 2x2, 1x4?

Rikr
- 75
- 2
- 5
2
votes
0 answers
windows server 2003 socket connections limit
I'm trying to establish many(the more - the merrier) socket connections on Windows 2003 server.
I make several server sockets and connect to them from current computer (1 server socket serves 1 client). I also make 1 server socket which serves many…

Natalia
- 21
- 4
2
votes
1 answer
hosting people asking for my account username and password to enable curl and socket function only for me
I have hosted my site in a shared environment.
My hosting people disabled socket function all together.
and they said that we can enable only for you if i given a written statement.
I did but they asked for my control panel login details so they…

Jayapal Chandran
- 141
- 1
- 7
2
votes
2 answers
Performance: mysql socket vs. mysql remote
I'm running a couple of projects which consume a lot of MySQL power (10'000 qps in peaktimes)...now I'm wondering what would be the best setup in order to keep it fast and smooth even if the user numbers grow.
Currently I'm using 1 server with…

Kilian Schefer
- 123
- 4
2
votes
2 answers
SELinux prevents Apache from writing to pgbouncer's Unix domain socket
I'm using freshly installed CentOS 5.7 Linux 64 bit with PGDG packages:
# rpm -qa|grep -i PG
postgresql-libs-8.4.8-2PGDG.rhel5
pgdg-centos-8.4-2
postgresql-8.4.8-2PGDG.rhel5
pgbouncer-1.3.4-1.rhel5
postgresql-server-8.4.8-2PGDG.rhel5
and get the…

Alexander Farber
- 714
- 4
- 17
- 38
2
votes
1 answer
haproxy domain routing
I am trying to set up haproxy to route to backends depending on the the subdomain that was used in the http request. Eg I have a regular web server running on port 8000 and an application server waiting for websocket connections running on port 8001…

Daniel Baulig
- 153
- 6
2
votes
1 answer
Host information with TCP port
Forgive this question, I'm a designer trying to get my head around a possible network architecture. I have a wildcard domain on example.com. The client connects via TCP to foo.example.com:1234. Is it possible for the process that is handling the…

Chris Lloyd
- 123
- 4
2
votes
1 answer
nginx does not close socket
ngnix is not closing the socket after the connection finishes. I've googled and can't come up with anything to will tell nginx to close this connection, other than what I have below: keepalive_timeout 0.
In both the request and response headers, I…

Jeremy McJunkin
- 121
- 1
- 2