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.

Filter by
Sorted by
Tagged with
2 votes
2 answers
2k views

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

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
2 votes
1 answer
3k views

How to monitor socket connection usage and exhaustion on a server?

I have a service endpoint (java) that will be getting bursts of thousands of requests per second. In my load testing I had to tweak the server because I would run out of open sockets as there were ...
3 votes
1 answer
10k views

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 ...
0 votes
1 answer
4k 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 ...
11 votes
2 answers
44k views

What does TCP: too many orphaned sockets mean?

When I use dmesg to look at linux kernel messages, I see a flood of.... TCP: too many orphaned sockets messages. My guess is this is sockets that are hanging around in TIME_WAIT after being closed ...
0 votes
0 answers
121 views

Single TCP-CLOSE_WAIT connection brings down application till restart

Recently found a behaviour where my application had a connection in TCP Close_wait state till the app was restarted (after about 5 hours). But during this period the SUnreclaim space was also ...
1 vote
2 answers
1k views

When a socket switch to TIME_WAIT state, why I can't see its inode number?

I'm developing a program in python that parses /proc/net/tcp informations, but unfortunately, while I was doing this, I saw a strange thing. Practically, when a socket change in TIME_WAIT state, ...
6 votes
2 answers
6k views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
0 votes
1 answer
599 views

Allow user to bind only certain ports on Linux [closed]

Welcome, I'm looking for equivalent of mac_portacl from FreeBSD. I want to assign to one user only certain ports. Filtering it by iptables isn't enough, because when process works, the port is blocked ...
0 votes
1 answer
3k views

Fixing WebSocket 404 Error With Dynamic WebSocket URL's Under Reverse Proxy

I am running Ubuntu, Apache, mod_proxy_wstunnel(Enabled), Shiny-Server, and R. I have setup shiny-server to listen locally, and Apache to Proxy requests for the shiny-server. I have also setup a basic ...
2 votes
1 answer
1k views

How do you control the file ownership of a socket managed by launchd

I'm working on writing a daemon that talks to other daemons in the same project over UNIX sockets. For security purposes, it's critical that these daemons only talk amongst themselves (and can't, for ...
1 vote
1 answer
3k views

Updated php5-fpm, can't use socket anymore

Earlier today, I updated packages on one of my servers. One of those packages was an update to php5-fpm, which seems to have broken my ability to utilize unix:/var/run/php5-fpm.sock. Disclaimer: I ...
0 votes
2 answers
5k views

Websocket & HTTP proxy with server between two firewalls

I have a server ("A") running behind a firewall, which serves HTTP and websockets. I have no control over the firewall, but do have an external server ("B") to which the internal server can connect (...
1 vote
1 answer
2k views

Inject packet to a different NFQUEUE

I have an NFQUEUE, for IPv6 packets hooked to PREROUTING chain of mangle table in ip6tables. Once I receive a packet in user application, I modified the header. Infact, modified the header from IPv6 ...
5 votes
2 answers
4k views

Postgres application tries to use incorrect socket file

I have a local postgres server running (on ubuntu linux). It is listening via a socket file: $ ls -la /var/run/postgresql/ total 8 drwxrwsrwx 2 postgres postgres 100 2011-04-15 19:06 . drwxr-xr-x ...
0 votes
2 answers
3k views

Websocket on dreamhost shared hosting

I would like to build a small webapp with some i/o communication with the server via ajax. Since I'm on a dreamhost shared server I already know that I cannot use node.js to build my app. But now, ...
1 vote
0 answers
400 views

Weird socket behavior in VirtualBox (NAT + PAT)?

I have a Linux VM with NAT and PAT configured. Let's say ports 2000 and 2001 are forwarded to the VM. These ports are also configured for external access on a device such as a router using a domain ...
0 votes
2 answers
655 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 ...
1 vote
2 answers
2k views

Communicating between two servers sitting behind their respective NATs

I'm building an web app (Server A) that communicates with a remote server (Server B) that is connected to the internet. Server B resides behind a NAT and is listening to communication on 3 non-...
0 votes
2 answers
5k 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 ...
1 vote
1 answer
183 views

Debian 7.4 drops UDP traffic randomly

I'm running Debian 7.4, KVM VPS with the latest updates. I'm getting UDP ports randomly closed for 2-10 minutes for no reason. I'm running gaming servers and the port tester shows the ports are closed....
2 votes
1 answer
4k views

Cannot get Web Sockets to work with virtual IP redirection

I can't get Web Sockets to work on my site when I access it via its virtual IP. If I use it's real (intranet) IP, everything works perfectly. If I use the virtual IP, I get this on Google Chrome ...
4 votes
0 answers
10k views

Nginx websocket 502 bad gateway

I'm trying to use nginx as proxy for websocket nodejs server, but I'm always getting 502 bad gateway. my domain config: upstream server { server 127.0.0.1:8090; } server { listen 8085; ...
5 votes
1 answer
4k views

How to check if a process is non-blocking in linux without using a stack tracer?

A multi-cpu server is running several processes. One process has a thread that should always be in a spinning state, using 100% of the CPU it's been assigned. My current method (besides asking the ...
1 vote
1 answer
1k 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 ...
7 votes
0 answers
2k 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
1 answer
593 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: https://stackoverflow.com/questions/21641219/...
0 votes
1 answer
2k 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 ...
1 vote
1 answer
3k 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 ...
2 votes
2 answers
3k 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 ...
0 votes
1 answer
1k 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
1 answer
2k 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 that ...
2 votes
1 answer
14k 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 *:80&...
0 votes
1 answer
893 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 ...
1 vote
1 answer
3k 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
2 answers
3k 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 ...
3 votes
2 answers
3k views

.NET 2.0: An established connection was aborted by the software in your host machine

Scenario: I try to post a video to YouTube with the following code: YouTubeEntry createdEntry = service.Upload(newEntry); This works fine on my developer machine (running Windows XP). It fails on a ...
1 vote
0 answers
3k 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 ...
1 vote
1 answer
2k 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 ...
-1 votes
1 answer
1k 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
1 answer
4k 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
4 answers
18k views

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) on subsequent connection through terminal

My sincere apologies for asking something that obviously has been answered before. The fact that I'm posting is that i would like to be absolutely sure since it's about a live server running currently....
0 votes
2 answers
2k 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 ...
3 votes
3 answers
3k views

python reports socket in use, netstat and others claim its not

We have a strange socket issue with a RHES3 box: Python 2.4.1 (#1, Jul 5 2005, 19:17:11) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-52)] Type "help", "copyright", "credits" or "license" for more ...
-4 votes
1 answer
218 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 ...
-3 votes
2 answers
14k 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?
20 votes
1 answer
25k 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 votes
1 answer
832 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 ...
3 votes
2 answers
22k 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. ...

1
6 7
8
9 10
12