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
3
votes
2 answers
HAProxy max session limit
I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the memory limits of that instance, which is fine,…

J Young
- 131
- 1
- 5
3
votes
2 answers
How to let PHP connect to database by using UNIX socket (Joomla)
I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database.
I've already configured the php.ini with:
mysqli.default_socket = /var/run/mysqld/mysqld.sock
mysql.default_socket =…

gijs007
- 117
- 1
- 4
- 18
3
votes
0 answers
Performance issues with Apache + Django + socket.io (long-polling) + Proxy
I'm trying to set up a website with django, apache and socket.io. Thanks to some tutorials and other stackoverflow questions, I managed to make everything work, except for a severe lag, that occurs when I send multiple socket.io messages within a…

basilikum
- 217
- 3
- 11
3
votes
2 answers
Postfix & Amavis - Use UNIX Soket for Communication
I currently using a complex mailserver setup using Postfix, Dovecot, Amavis and Spamassassin.
Everything works fine but I want to improve the Postfix-Amavis-Communication. At the moment, postfix will send all mails to localhost:10024 which is the…
user219962
3
votes
2 answers
source address with iptables port forwarding
I set up port forwarding for port 80 with iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 10080
Additionally, I have ip forwarding enabled to route connections from a different subnet.
I am running my own…

user1247196
- 41
- 1
- 3
3
votes
0 answers
How to deploying Node.JS without interrupting service?
There are some blog posts and questions written about this, but they are mostly from 2010 or 2011, and I was hoping for a more up-to-date (2014 era) answer.
I have a pretty standard Node.JS application running Express, Socket.IO, Passenger, etc. My…

sffc
- 382
- 1
- 3
- 11
3
votes
1 answer
NGINX: How to proxy http(s) traffic to one server and ws(s) traffic to another?
I'm new to nginx and how it handles locatoins, and was hoping to get help for a problem I'm having:
On the same server I have an Apache web server and a websocket server. Apache works on port 8080 and the websocket server works on 9090. I would like…

Mita Ka
- 133
- 1
- 1
- 4
3
votes
3 answers
Apache load balancer for mod_proxy_wstunnel?
We are in the process of developing a JavaEE 7 application to be deployed on JBoss/Wildfly that will make extensive use of Web Sockets. We're using mod_proxy_wstunnel for web socket support, and we've managed to get a proxied configuration up and…

Shadowman
- 71
- 1
- 8
3
votes
1 answer
Access to a network server without port forwarding
I have a network with the following structure.
The server in PC2 is simple socket server TCP in 8080 port.
I need to access to PC2 from other external network by socket client. This socket client knows the public IP (85.xxx.xxx.x), the private IP…

SdevDavid
- 33
- 1
- 1
- 4
3
votes
1 answer
How to solve SocketException: Permission denied: connect
I recently encountered a problem that is giving me a headache and I need help ...
The System consists of two subsystems, called A and B, each running on a standalone Tomcat instance and currently running on the same machine. A invokes B's service…

luxinxian
- 31
- 1
- 1
- 2
3
votes
2 answers
How does server handle multiple clients on the same port? Multiple sockets or multiple ports?
I have a misundertanding about some networking theory and because I couldn't find a definitive answer online (most resourceas are theory and theory etc without concise examples) I'm asking here.
Assuming I have a server with IP 10.10.10.10 that…

john-13-14
- 41
- 1
- 1
- 3
3
votes
1 answer
Nginx not proxying websockets properly
Using the development version of nginx (1.3.12). In my relevant file under sites-enabled:
upstream twisted {
server 127.0.0.1:8088;
}
server {
listen 80; ## listen for ipv4
server_name *.clurn.co.uk clurn.co.uk;
…

socksy
- 33
- 1
- 3
3
votes
2 answers
Caused by: java.net.SocketException: Software caused connection abort: socket write error
I running JSP on Oracle 11g, Weblogic 10.3.4. I have 2 managed server and a oracle admin server installed.
I am encountering an error where intermittently the log file of the 2 managed server and admin server will show java.net.SocketException:…

jrishere
- 31
- 1
- 1
- 3
3
votes
2 answers
Apache will not start in Ubuntu 12.10: no listening sockets available
I'm not able to start the fresh apache2 installation on my development machine running Ubuntu 12.10.
michal@ubuntudesktop:~$ sudo service apache2 start
* Starting web server apache2
no listening sockets available, shutting down
Unable to open…

michalstanko
- 291
- 1
- 3
- 7
3
votes
1 answer
Appears to be "randomly" switching between the acl matched backend and the default backend
I have HAProxy acting as a proxy in front of:
An NGinx instance
An in-house load balancer in front of multiple dynamic services exposed with socket.io (websockets)
My problem is that from time to time my connections are proxied correctly to my…

AaronO
- 131
- 5