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

0
votes
1answer
477 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
950 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
308 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 ...
6
votes
5answers
6k 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
1answer
597 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
267 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
496 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
253 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
487 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
547 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
855 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
561 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
334 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
647 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
56 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 ...
-4
votes
2answers
2k 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
3k 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
1answer
346 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
476 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
114 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
582 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
272 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
346 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
5k 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
633 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
347 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
628 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
270 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
366 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
579 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
444 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
653 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
4k 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 ...
3
votes
0answers
411 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 ...
0
votes
2answers
355 views

How to diagnose large number of TIME_WAIT connections

We have a production issue with only one of our servers and have correlated slow performance to an abundance of sockets in the TIME_WAIT state. Without drawing this question into a huge backstory, we ...
1
vote
2answers
1k views

Linux server resend SYN ACK

I am troubleshooting a connection timeout problem between two Linux boxes, where it seems the ACK to SYN-ACK was lost on the server's stack. The tcpdump is done on the server side. The client got ...
1
vote
1answer
1k views

How to create a socket with mknod correctly?

I try to create a socket for communication between uwsgi and nginx. The difficulty is that I don't know what major and minor numbers I should specify: v:/tmp# mknod wsgi_pgame.sock c mknod: missing ...
1
vote
1answer
93 views

How to determine which direction to scale a web application

I am currently developing a web application and am trying to figure out the best way to host it. I've looked around, used dozens of different phrasings, read hundreds of posts and comments. but none ...
0
votes
1answer
1k views

Configuring Postfix to use milter (archiveSMTP)

How does one config Postfix to use the milter "archiveSMTP" ? The milter config instructions (http://www.dancingfortune.com/projects/archivesmtp/download.php) mention only one socket for ...
1
vote
0answers
334 views

UDP socket receive buffer size change on RHEL6.3

Our system used to work on RHEL5.3 And the socket receive buffer size is 64k. And that works fine. We can get message size up to 64k on UDP socket. But after system upgrade, it is running on RHEL6.3 ...
2
votes
1answer
1k views

Tuning tcp_keepalive_time for Node.js leak

I'm currently having a socket leak with my Node.js application. This bug is also posted here. I hope to fix this soon. CLOSE_WAIT and FIN_WAIT2 seem to be the major problem. Connections: 1662 ...
0
votes
2answers
216 views

Simulating many client connection to server

I've written a protocol on top of TCP using C# Sockets class which allows the transfer of files between many clients, and put it on a Windows Server 2008 VPS. I have then written the client-side ...
1
vote
1answer
691 views

NGINX 1.3.14 proxy Websockets

Websocket support is built in to Nginx as of 1.3.13, so I should have it. Can someone please provide me the simplest example of a config that will allow my nginx (on Centos 6) proxy to accept an HTTP ...
0
votes
1answer
565 views

http connect tunnel to proxy in front of a websockets server?

I am having a hard time with this one. We have a websocket server listening on port 80 at myserver.com/wsDemo?ID=12. We need to test a client program by connecting it to this server through a proxy. ...
0
votes
2answers
394 views

Adobe AIR ServerSocket to remoteIP?

I have a mobile multiplayer game that uses the AIR serverSocket class to connect to an AIR server app on a laptop set up as a wifi hotspot. The requirements have changed and now the server must be ...
0
votes
2answers
2k views

Connection Refused Error Java/Linux

I'm trying to move an existing project over to a new (linux) server environment (note, I have no direct access to the code nor do I have any knowledge about the project in general - talk about a great ...