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.

learn more… | top users | synonyms

2
votes
0answers
304 views

How to deploy a WebSocket application without downtime?

Deploying HTTP applications without downtime isn't that hard: HTTP is stateless, so with a load balancer in front of 2 HTTP applications solves the problem. If both applications use a common backend ...
0
votes
1answer
1k views

Unable to access 3ware 3dm2 web interface, failed to start listening socket

I am unable to get to the 3ware 3dm2 web interface. When I attempt to execute 3dm2 from the command line, i get the following error "(0x0C:0x0005): Failed to start listening socket". This was working ...
0
votes
1answer
359 views

Use stunnel for Socket.io SSL support

I am trying to add SSL support to my node.js app, while connecting via socket.io. The traffic to socket.io is going to port 80. I would like stunnel to grab encrypted traffic from port 443, unencrypt ...
2
votes
1answer
6k views

Why would a client send a RST packet as reply to a SYN,ACK?

I have a HTTP webservice where sometimes the connection setup fails in a strange way: client sends a SYN packet server sends a SYN,ACK reply client responds with RST In which situations could a ...
0
votes
3answers
2k views

Running a websocket server and a http server on the same server

I am using nginx to to serve an instance of PHP application, and also at the same time running a Ratchet app to listen to a websocket connection. Problem is, both of these instance are using the same ...
0
votes
1answer
128 views

TCP client and server work for X times but hang after that

I'm a software engineer, but I think my problem needs a network engineer... For the software side of things, have a look at my Stack Overflow question: ...
2
votes
1answer
532 views

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 ...
1
vote
1answer
962 views

F5 Big-IP and WSS WebSockets

We have a F5 Big-IP load balancer that handles the SSL, so the servers behind it get HTTPS rather than HTTP (SSL off loading). I don't have version handy, but in the login page I can see "Copyright ...
4
votes
0answers
168 views

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 ...
0
votes
1answer
259 views

Does the IIS 7.5 has any anti-dos or anti-flood mechanism built in and enabled by default?

Inside my windows 2008 R2 I am running a secure websocket server (XSockets.NET). When there are too many connections to the server, the server just stops responding at all. The developers claim, that ...
2
votes
1answer
451 views

How to open a port below 1024 in Cent OS for socket.io?

I'm trying to open port 843 in my Cent OS 5.2, I added following line to etc\sysconfig\iptables : -A INPUT -p tcp --dport 843 -j ACCEPT and then updated my iptables service. I need to listen to ...
3
votes
2answers
2k views

nginx proxying websockets, must be missing something

I have a basic chat app written in node.js using express and socket.io; it works fine when connecting directly to node on port 3000 But doesn't work when I try to use nginx v1.4.2 as a proxy. I ...
0
votes
1answer
529 views

How can we configure the Bitnami Joomla stack to open a socket on startup?

I have deployed the Bitnami Ubuntu Joomla! 3.1.5-2 (64-bit) stack on Amazon Cloud: http://bitnami.com/stack/joomla/cloud/amazon By default, the stack is configured to run PHP using PHP-FPM. I have no ...
0
votes
1answer
1k views

php-fpm + persistent sockets = 502 bad gateway

Put on your reading glasses - this will be a long-ish one. First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an ...
1
vote
0answers
380 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
8
votes
5answers
9k views

Can't connect to MySQL using 'localhost' but using '127.0.0.1' it's ok?

My /etc/hosts file looks like this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ...
0
votes
2answers
748 views

nginx node.js & socket.io 504 timeout

Nginx config server { listen *:80; server_name live.domain.com; server_tokens off; charset utf-8; error_log /var/log/nginx/live-error.log info; ...
1
vote
1answer
340 views

Do keepalives to socket connections exist?

Pre briefing: Although my question is broad on purpose, I am dealing with nginx connecting to php-fpm (fcgi), which is served via a local socket (/tmp/somesocket.socket). Nginx has a setting to ...
0
votes
1answer
599 views

Issue with Dovecot connection staying alive : memory or configuration issue?

I had a similar question posted a while ago, and I Thought it fixed my issue, but that was unfortunately not the case. I have a benchmark application which connects about 500 users to a Dovecot 2.2.5 ...
0
votes
0answers
297 views

Proxy Server for my Tomcat7 Websocket Application?

I have a Java Servlet application running on a Tomcat server. My app uses Websockets. I want to use a proxy server which should root to my Tomcat running on pert 8080. What proxy should I use for ...
2
votes
2answers
541 views

On Linux, is there a configurable socket timeout between kernel and user space?

I'm currently fighting with some crappy piece of (custom) server software which doesn't accept its connections properly (written in Java by a PHP programmer who never before touched sockets let alone ...
1
vote
1answer
631 views

Nginx proxying websockets, connections not closed

I'm confused about where the problem is located, but basically I have nginx proxying websocket connections to a backend ruby thin server, which services the connections with the websocket-rails module ...
0
votes
1answer
1k views

Allow socket connection in Solaris

I have 2 solaris machines and I have an application that opens a socket via port 8556, but for some reason the connection keeps getting refused. When I run a netstat command on the second server ...
0
votes
1answer
662 views

WebSocket not Working on Apache Tomcat 7 on AWS ElasticBeanstalk

I just set up me web app on top of ElasticBeanstalk. Everything seemed to work fine, until I discovered that my instance couldn't use WebSocket, every time I tried to connect internal server error ...
0
votes
1answer
356 views

Python cant connect to local MySQL server through socket [closed]

I have a python script which is designed to add things to a MYSQL database. The error I get is this: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock I've checked the ...
0
votes
2answers
707 views

Don't manage to set up iptables rules for client/server socket exchange on localhost

I am a client/server-IPC-iptables near-newbbie. I have made my homeworks deeply during one year and thought this should work : # cat /root/firewall/iptable | nocomment iptables -F iptables -F -t nat ...
-4
votes
1answer
64 views

How do I map a socket port between the guest and the host on Parallels? [closed]

I am trying to analyse some client server applications on Mac and Windows and I would like to configure Parallels so it will map a set of ports between the guest and the host. This would allow me to ...
0
votes
1answer
2k views

Apache Proxy Pass and Web Sockets

I'm using Apache with the mod_proxy module to reverse proxy my Node.js application through to port 80, so that we can access it as an internal application. I have a file in sites-enabled which ...
-3
votes
2answers
3k views

what is a 4 socket server? What is “socket” in this context? [closed]

I see that the IBM System x3750 M4 is a "4-socket" server. What does that mean? Does that mean that the server has 4 network ports? What is a "socket" in this context?
1
vote
1answer
4k views

Apache server : Reverse proxy and websockets via mod_proxy_wstunnel

I have a little problem with the web sockets and my reverse proxy apache, i have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel. The httpd.conf : <VirtualHost ...
0
votes
2answers
427 views

not able to copy socket/inode file

I having the file called 'live' in ubuntu, this is the socket/inode type file. This file has the permission as srw-rw-r-- live I want to create the copy of the file. I not able to copy it using ...
3
votes
1answer
599 views

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 ...
6
votes
2answers
2k views

Sniff UNIX domain socket

I know that some process is writing to a certain unix domain socket (/var/run/asterisk/asterisk.ctl), but I do not known the pid of the sender. How can I find out who is writing to the socket? I have ...
6
votes
1answer
2k views

How to expose a UNIX domain socket directly over TCP

I'd like to have a UNIX domain socket, say /var/program/program.cmd for example, exposed via TCP, lets say on port 12345. I'd also like this to be running full time in the background. What's the best ...
1
vote
1answer
143 views

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?
1
vote
1answer
645 views

high traffic websocket/haproxy tuning

i have a pubsub application (mostly chat but some other goodies being pub-ed and sub-ed too) running on node & socket.io. i'm load testing this app by spinning up some other, real large, boxes ...
1
vote
0answers
317 views

Configuring Nginx reverse proxy with SSL and websocket

I'm running a web app that is using websockets and have nginx as a reverse proxy for that and that works fine. I've also been able to get SSL to work without the socket. Now we're nearing the official ...
-1
votes
1answer
431 views

I want to install pysockect or any other websocket in centOs 64 bits

I have get a tutorial to install pywebsocket in linux. http://www.travisglines.com/web-coding/how-to-set-up-apache-to-serve-html5-websocket-applications-with-pywebsocket But I am using centOs for my ...
2
votes
2answers
7k views

How does server handle multiple clients on the same port? Multiple sockets or multiple ports? [closed]

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. ...
8
votes
4answers
639 views

how to measure MB/sec on specific socket

We have a web tier where once in a while a web node will slam our data nodes(plural) and if we could see the MB/second coming into that machine on all sockets or on individual sockets, we could ...
0
votes
1answer
421 views

Socket based byte counts

I see a lot of tools to get the RX and TX byte counts for transmission on interfaces, is there any tool/program that I can use to get a total transmitted byte count for a single specified socket? I'm ...
1
vote
2answers
848 views

TCP vs UDP Error-Checking

I've bounced upon two articles that describe in-depth on how TCP and UDP connections work. However there is some kind of inconsistency. Where one article tells me that UDP does no Error-Checking at ...
0
votes
0answers
330 views

Proxy pass NGINX to NodeJS via UNIX socket instead of ip+port

I'm wondering if proxy_pass-ing NGINX to NodeJS via UNIX sockets is possible. I know that I can start up a nodejs application and start listening on a random port on 127.0.0.1 and then proxy_pass ...
0
votes
2answers
439 views

socket timeout exception on ubuntu

We have solr router and shards. This appears in the jetty log of the router when doing faceted search across all the shards. org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: ...
0
votes
1answer
670 views

Load balance https and websockets wth sticky sessions and NGINX

I'm using NGINX to do sticky session load balancing in front of a node.js app that will support http, ssl, and websockets. If I want the load balancer to simply forward requests to the node.js server ...
0
votes
1answer
490 views

How to use abstract names of unix domain sockets with fastcgi in nginx?

I tried some perl examples of unix domain sockets using abstract names: Created a socket starting with a null character: my $socket_path = "\0wibble"; using netstat -nlp I can see the socket: unix ...
0
votes
1answer
875 views

How to check if sockets are sending/receiving data on linux?

I often have to debug processes which involve a server client tcp connection. I'd like to check, during times where a client might seem stuck, whether the server is sending it data or not. I can use: ...
2
votes
1answer
2k views

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 ...
8
votes
1answer
5k views

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 ...
4
votes
0answers
442 views

mysql client slow login strace

I am experiencing an issue with slow connections/logins to a loaded mysql server, even when connecting via the unix socket file (CentOS 6.3). Queries are completing very quickly -- (0.00 sec) in this ...