Questions tagged [socket]

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.

564 questions
9
votes
2 answers

Does Mac OS X throttle the RATE of socket creation?

This may seem programming related, but this is an OS question. I'm writing a small high performance daemon that takes thousands of connections per second. It's working fine on Linux (specifically Ubuntu 9.10 on EC2). On Mac OS X if I throw a few…
pbhogan
  • 321
  • 2
  • 7
8
votes
1 answer

ProxyPass a WebSocket connection to a UNIX socket

In Apache 2.4 you can reverse proxy an HTTP connection to a local Unix socket with: [1] ProxyPass unix:/path/to/app.sock|http://example.com/app/name You can reverse proxy a WebSocket connection to a local TCP socket with: [2] ProxyPass…
Kijewski
  • 191
  • 1
  • 8
8
votes
2 answers

What happens, if the server runs out of ports?

If the client joins to a server, then there is a local port, and a remote port in each connection. What happens, if more than 65535 client tries to join to my server?
8
votes
1 answer

Apache in linux-vserver won't start, can't create socket

During extensive research and testing to write a proper question worthy of stackexchange I found a solution: rebuild the libapr1 package inside the guest.I thought I'd nevertheless post this information as it could be useful to others. Problem When…
mark
  • 1,516
  • 5
  • 21
  • 33
8
votes
1 answer

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. My relevant…
alfish
  • 3,127
  • 15
  • 47
  • 71
8
votes
2 answers

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are off): tcp 0 0 localhost.localdomain:44307…
James Hartig
  • 131
  • 1
  • 1
  • 5
8
votes
1 answer

Haproxy load balancing with HTTP Headers

We're using HAProxy to load balance our websocket and comet application. There is one HAProxy and 3 applications running in the back. We use HTTP Basic Auth (and we will use other types of auth in the future, like OAuth) to identify the connected…
Julien Genestoux
  • 609
  • 8
  • 19
8
votes
3 answers

Can I make TCP/IP session to run less than 60 seconds?

Our server is overloaded with TCP/IP sessions, we have 1200 - 1500 of them. Most of them are hanging in TIME_OUT state. It turns out that a connection in TIME_OUT state occupies a socket until 60 second time-out is elapsed. The problem is that the…
par
  • 1,263
  • 3
  • 12
  • 15
7
votes
3 answers

How do you determine what type of CPU socket a linux computer has?

What Linux command/program can I use to tell me what type of CPU socket a Linux desktop has? I use CPUZ or SIW on windows, and I can use "cat /proc/cpuinfo" on Linux to get the rest of the possessor's information, But it does not tell me which…
lanrat
  • 737
  • 4
  • 11
  • 19
7
votes
1 answer

WebRTC on standalone asterisk - no audio

After struggling with Asterisk for WebRTC for a few weeks now, I decided to put my problem on this forum. My Problem is as follows: Im not getting audio from WebRTC to WebRTC clients. I work in a LAN environment. Situation - Call from JSSIP to…
Haije Ploeg
  • 163
  • 2
  • 13
7
votes
2 answers

SElinux label for php-fpm sockets

I'm attempting to set up multiple instances of php-fpm to run multiple versions of php through apache 2.2 running on centos 6.5. At some point in the future this will end up in a shared hosting environment, so I need the tightest security…
Mikk3lRo
  • 183
  • 1
  • 7
7
votes
2 answers

Nginx to apache reverse proxy, instruct use of unix sockets

My Nginx reverse proxy works on the same machine as the webserver(apache) as follows server { server_name site.net; location / { proxy_pass http://localhost:82; proxy_set_header Host $host; …
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
7
votes
3 answers

Should a web server care about IPv6 compatibility?

Are there any IPv6 clients in the real world? If not, is there any other reason to support IPv6? (My understanding is that with the advent of WANs and such IPv6 is not necessary, hence extremely low if any adaption. Is that correct, or will we be…
6
votes
1 answer

How to close a port with no process attached?

This question is similar to Network port open, but no process attached? and netstat shows a listening port with no pid but lsof does not I tried all i can do(as root: netstat, lsof, ls -al /proc/*/fd etc.), but i can't find the pid. Anyway, i have…
Degas
  • 88
  • 1
  • 1
  • 8
6
votes
2 answers

Unable to restart a systemctl service remotely as a non root user

I have a systemd.socket named gunicorn.socket which I would like to restart after updating some code on a remote server. I've followed the steps detailed in Allowing a non-root user to restart a service and systemctl keeps asking for my user…
marcanuy
  • 268
  • 1
  • 4
  • 11