All Questions
33
questions
0
votes
1
answer
1k
views
Docker race condition leading to curl error "transfer closed with 1 bytes remaining to read"
It is hard to fully describe our problem. However, I will try my best to provide full information.
I spent many hours and still stuck. Hope that anyone here can help me.
Currently, our container ...
3
votes
2
answers
2k
views
Should I worry about hanging sockets when setting keep-alive timeout to Infinity?
Some initial context to this question. Currently I have a application cluster deployed behind a ALB which maintains persistent keep alive connections with the application. This application is under ...
2
votes
1
answer
1k
views
Is it safe to pass my ssl key and cert files to socket.io? [closed]
I'm building a web chat using socket.io
In order to communicate on port 3000 through https I need to pass my ssl key and cert files.
Socket.io is an open source and I don't know how trustworthy it ...
2
votes
0
answers
8k
views
400 Bad Request while creating websocket between client and nodejs with Nginx as reverse proxy
I am trying to create a websocket using Nginx as a reverse proxy and nodejs at the back. I'm using ws library in nodejs. When I test it using wscat tool everything works fine but as I make request ...
1
vote
1
answer
8k
views
Socket IO combined with apache ssl server
I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to ...
4
votes
1
answer
3k
views
SSL - Apache and Node.js on the same Amazon EC2 instance
I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443.
Currently, I just added a chat application to the website using Node.js + socket.io. ...
-1
votes
1
answer
178
views
Is "keeping alive connections" the smartest approach to access devices behind a router? [closed]
The problem
I'm developing an IOT device that will connect to a common Wifi router. As you know in order to make this device publicly accessible from WAN you'll have to do some ports forwarding or ...
0
votes
1
answer
124
views
Will internal API calls be treated as DDOS attacks by AWS?
I have a nodejs development server. I am currently running on an AWS EC2 micro AMI. I have a hardware device which continuously submits data to this server via socket. The server then calls an API, ...
0
votes
1
answer
192
views
Keep connections of closed instances behind a load balancer
I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem.
There are tons of solutions to balance the load between multiple socket ...
3
votes
2
answers
9k
views
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 ...
1
vote
1
answer
29k
views
node.js, socket.io only working on localhost, can't access from intranet
I am using node.js and socket.io for the real time notification system. I have tested node.js and socket.io with simple chat code, it pretty good with localhost but can't access the same from the ...
3
votes
0
answers
729
views
How to deploying Node.JS without interrupting service? [closed]
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 ...
1
vote
0
answers
2k
views
Deploying node.js application on Ubuntu VPS
I created an real time android application backed by a node.js application. I use express, socket.io, mongodb and ubuntu for my backend. But my problem is on how I can possibly run it in production or ...
4
votes
1
answer
9k
views
High # of sockets in TIME-WAIT state, server unresponsive at load
Our app became unresponsive at high loads, with longer wait times. Process usage was abnormally low (~15% CPU utilisation per process, our app runs on 8 processes).
Nginx error log output showed a ...
17
votes
1
answer
46k
views
Configuring Apache 2.4 mod_proxy_wstunnel for Socket.IO 1.0
I'm trying to configure Apache 2.4 for proxying the websocket connection for socket.io to a node.js websocket server, using mod_proxy_wstunnel. We had this working fine with socket.io 0.9, but with ...
4
votes
0
answers
9k
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;
...
1
vote
1
answer
2k
views
Servicing ws:// in Node.js via Tomcat and Apache
I've Googled various combinations of keywords but I cannot find a suitable description of what to do to get this to work. Currently, I have a web site running Apache 2 with everything except ports 80 ...
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 ...
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 ...
4
votes
2
answers
8k
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
3
answers
4k
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;
...
2
votes
1
answer
2k
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 ...
5
votes
1
answer
7k
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 ...
2
votes
1
answer
4k
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
...
1
vote
1
answer
781
views
Web socket regular disconnections on OS X
We have a SPA that runs SockJs both client and server (NodeJs) side. For Windows workstations we have no problems maintaining web socket connections to servers deployed in Windows Azure. But for some ...
1
vote
1
answer
4k
views
socket.io session ends with HAproxy
I'm stuck with dealing with the configuration of HAproxy to make it work with socket.io.
My last question was this: HAProxy is caching the forwarding? and I got it working, but for some reason, after ...
1
vote
1
answer
1k
views
HAProxy is caching the forwarding?
i'm trying to set up a server structure for an application i'm building in Node.js with socket.io.
My setup is:
HAProxy frontend forward to
-> apache2 as default backend (or nginx, is ...
0
votes
2
answers
1k
views
Node.js, Nginx and Varnish with WebSockets
I'm in the process of architecting the backend of a new Node.js web app that i'd like to be pretty scalable, but not overkill. In all of my previous Node.js deployments, I have used Nginx to serve ...
1
vote
1
answer
638
views
Nginx + SSL + Rails + Juggernaut (Node.js) + Engineyard
I have two different applications on the same server. One of them is running on the 80 port (mydomain.com), another on the port 443 (sub.mydomain.com) and has wildcard certificate.
The first ...
3
votes
1
answer
2k
views
Is it worth running Nginx for static files of my Node.js app?
I'm currently writing a web app in Node.js and will soon be setting up my Linux server to make it live. I'm curious, is it worth running Nginx for my Node app's static files? Is it running Nginx to ...
4
votes
1
answer
4k
views
Set up websocket server on Amazon Linux AMI using Node.js
I have been having issues for a few days trying to set up a simple websocket server on an Amazon EC2 instance. I am using a micro instance of Linux. After booting up for the first time, I updated all ...
20
votes
4
answers
38k
views
How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?
I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket.
The Nginx configuration file:
server {
listen 80;
location / {
proxy_pass http://unix:/...
3
votes
2
answers
2k
views
Nginx, HAproxy, Unicorn, Rails and Node settings
Our application is currently only a "regular" web app, with no fancy things like streaming HTTP or websockets. It's mostly a Rails app, served by a few (20 on 2 machines) Unicorn workers, proxied by a ...