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.

564 questions
3
votes
1 answer

Dealing with upgrade of libevent on Amazon AWS

I am building an application (in Python) on Amazon EC2 that has a following dependency chain: gevent-websocket ---> gevent ---> libevent The last one (libevent) got upgraded on Sunday and my server is now generating this error: (...) File…
Dreen
  • 153
  • 4
3
votes
1 answer

Does Microsoft TMG 2010 handle websockets, at least through SSL?

I thought in my own insanity that if I published an IIS 8 web server with websockets through HTTPS there shouldn't be a problem even with the TMG. However, regardless of publishing, filtering and request settings, I don't see any websocket…
Oskar Duveborn
  • 10,760
  • 3
  • 33
  • 48
3
votes
1 answer

Socket.io Flashsockets over HTTPS

We’re trying to get Socket.io flashsockets to work in Internet Explorer 9 over HTTPS/WSS. The flashsockets work over HTTP, but HTTPS is giving us problems. We’re using socket.io version 0.8.7 and socket.io-client version 0.9.1-1. We’re running our…
Justin Meltzer
  • 711
  • 1
  • 9
  • 19
3
votes
3 answers

What is the linux command to find out the number of socket currently open?

I use that : sudo watch lsof -i -4 -a -P and it returns a list. how to get the count? I tried this but doesn't work. sudo watch lsof -i -4 -a -P | wc -l
seatoskyhk
  • 151
  • 1
  • 3
3
votes
1 answer

Which permission is needed to open a TCP server socket on Linux?

I want to start a websocket server, but can't connect to it from other machines. Only when I start the websocket server with root permissions it works. So this seems to be an permission Problem. Which permissions does my user need to open a socket?
K..
  • 133
  • 1
  • 5
3
votes
1 answer

Disable kernel processing of TCP packets for raw socket

I'm working on a TCP/IP implementation, for an embedded device, that I want to test from a Linux user space process using raw sockets. raw(7) says that Raw sockets may tap all IP protocols in Linux, even protocols like ICMP or TCP which have a…
Peter Woo
  • 31
  • 1
  • 2
3
votes
3 answers

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 information. >>> import socket >>> s =…
captainmish
  • 308
  • 3
  • 10
3
votes
2 answers

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a Microsoft stack?

I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating scrolling area where new notifications will be…
ElHaix
  • 269
  • 3
  • 13
3
votes
1 answer

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 reverse proxy to any other Node apps that maybe…
littlejim84
  • 267
  • 1
  • 3
  • 9
3
votes
1 answer

Use Nginx callback after x-accel-redirect response (or use logging to socket)

my workflow is following: accept request with ruby script do some stuff send x-accel-redirect header and return ... client receives data ... client disconnected <- here I would like to run some script What I need: some http headers from client and…
3
votes
1 answer

Traffic filtering for websockets

We have a websocket server that accepts connections. Unfortunately, for a reason that we have yet to identify some clients go rogue and connect/disconnect/connect... in loop at a very high frequency. This is a mess to deal with and penalizes other…
Julien Genestoux
  • 609
  • 8
  • 19
3
votes
2 answers

How to debug troubles with unix domain sockets?

Ubuntu Server 10.04.2 $ uname -a Linux my.local 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux It seems that my domain socket queue is overflowing, but I can't prove it. I've got this stack…
Alexander Gladysh
  • 2,423
  • 8
  • 31
  • 49
3
votes
1 answer

Lots of TIME_WAIT connections in netstat (Windows Server 2008)

I'm having some issues on a Windows 2008 server with some network connections not going through. For instance, in a web application on the server, we need to open a socket connection to another server, and this fails sometimes with the following…
Rhys Causey
  • 191
  • 1
  • 2
  • 7
3
votes
2 answers

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 venerable nginx server which deals with load…
Julien Genestoux
  • 609
  • 8
  • 19
3
votes
1 answer

Forward socket to multiple ports

I have two network servers I'd like to test in parallel using live data. I'd like to have something listen on port A and forward the traffic to both port B and port C. The data stream in inbound only (i.e. the client just sends data via UDP and…
alanc10n
  • 303
  • 2
  • 7