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
1answer
527 views

Folder disappearing from /var/run upon reboot with Ubuntu 12.04

I'm running php5-fpm on Ubuntu using a UNIX socket at /var/run/php5-fpm/www.conf.sock. During the installation I have created manually the php5-fpm folder inside /var/run/ so that php5-fpm could ...
0
votes
1answer
2k views

Sar: what does totsck stand for

I'm looking for an explanation of the totsck column for the "sar -n SOCK" output 09:44:06 PM totsck tcpsck udpsck rawsck ip-frag tcp-tw 09:44:09 PM 580 18 5 ...
9
votes
4answers
10k views

Need to increase nginx throughput to an upstream unix socket — linux kernel tuning?

I am running an nginx server that acts as a proxy to an upstream unix socket, like this: upstream app_server { server unix:/tmp/app.sock fail_timeout=0; } server { listen ...
1
vote
2answers
77 views

How do communcations through ports works [closed]

I was studying socket programming and certain questions came to my mind. These are some beginner level doubts Is it mandatory to to use well known port for a particular application. For example if i ...
2
votes
2answers
2k views

vmware virtual sockets vs cores per socket

VMware configuration give me various options for upgrade the cpu of the virtual machine. Number of virtual sockets Number of cores per socket If I need 4 cpu in my linux box, which is better for ...
1
vote
0answers
253 views

SocketException (Timeout) only when running as scheduled task

I'm running a C# web-scrapper application (that I wrote) on a Windows Server 2003 instance under a user belonging to the local Administrator group. When I run it within a desktop/remote-desktop ...
0
votes
1answer
287 views

Python: how to calculate data received and send between two ipaddresses and ports [closed]

I guess it's socket programming. But I have never done socket programming expect for running the tutorial examples while learning Python. I need some more ideas to implement this. What I specifically ...
-2
votes
1answer
73 views

Apache2 on Centos [duplicate]

Possible Duplicate: Configuring Apache on CentOS 5.7 I've purcheased a vps and installed apache2. As developer i've been doing this hundreds of times with no problem. Now I'm facing this: ...
3
votes
3answers
14k views

Why is my RapidSSL Certificate chain is not trusted on ubuntu?

I have a website that works perfectly with Chrome & other browser but i get some errors with PHP in CLI mode so i'm investigating it, running this: openssl s_client -showcerts -verify 32 -connect ...
5
votes
3answers
5k views

Linux web servers that support websockets?

I'm currently having a lots of difficulties trying to play with socket.io which needs websockets support from the server (reverse-proxying). I was wondering, is there any other web servers out there ...
0
votes
3answers
1k views

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
2
votes
1answer
2k views

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. ...
1
vote
0answers
658 views

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 ...
2
votes
0answers
980 views

windows server 2003 socket connections limit

I'm trying to establish many(the more - the merrier) socket connections on Windows 2003 server. I make several server sockets and connect to them from current computer (1 server socket serves 1 ...
-2
votes
2answers
310 views

How to write the server to work behind NAT without any router configuration

I have two machines A and B: A: Client (behind NAT) B: Server (behind NAT) I want 'B' to be able to listen on port 8080 for example, so that 'A' can send packets to 'B' through that specific ...
6
votes
3answers
980 views

Does having a load balancer allow you to re-use socket connections?

I have a service where servers upload 20kb xml files to my server. There is no session, it is a single POST request and that's it. Each individual request is authenticated based on the contents of ...
-1
votes
1answer
172 views

Segments/Processes running on same UDP socket

Suppose a process in Host C has a UDP socket with port number 12345. Suppose both Host A and Host B each sends a UDP segment to Host C with destination port number 12345. Will both of these segments ...
2
votes
1answer
4k views

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. ...
0
votes
1answer
197 views

Subdomains. How do you do development with subdomains?

I am currently building an web app which also utilizes websockets. (Rails for webserver and Nodejs for socket.io) I have structured my application to use subdomains to separate between connection to ...
0
votes
1answer
1k views

Should You Continue Polling Socket For Readiness After An EAGAIN or EWOULDBLOCK Error?

I am creating a web crawler with a multiplexed download manager using Linux epoll (Linux 2.6.30.x). I pick links from a database of over 40,000 domains (each domain having between 1 and 2000 urls), a ...
2
votes
1answer
71 views

hosting people asking for my account username and password to enable curl and socket function only for me

I have hosted my site in a shared environment. My hosting people disabled socket function all together. and they said that we can enable only for you if i given a written statement. I did but they ...
1
vote
1answer
510 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 ...
1
vote
2answers
113 views

Problems with firewall when forwarding 8080 thru Comtrend5071T

I am trying to forward port 8080 thru my modem but i have not been successful. to be exact my desired route is as follows: Connection to Server A (192.168.0.5) is tested as working ...
4
votes
1answer
446 views

Is there a way to show list of all open sockets on a Windows server and the socket properties?

We are using a third party library in one of our applications. We would like to find a tool which will list all of the open sockets on the machine AND give us the ability to see the various TCP ...
3
votes
3answers
683 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 ...
3
votes
2answers
1k views

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

Is there a system wide limit to the total amount of socket & queue buffer space?

in Linux I know that you can tweak the maximum buffer size per socket connection, but is there a system wide limit to the amount of space the buffers can take up and does this apply equally to the ...
7
votes
2answers
5k views

Create Unix Named Socket from the Command Line

Is there a command similar to mkfifo but for domain sockets?
1
vote
0answers
239 views

How to troubleshoot intermittent winsock 10054 errors on Windows Server 2003 SP2

We are getting 10054 errors in a couple of our applications on one server running Windows Server 2003 SP2. This happens intermittently, and we also have other similar servers running the same ...
3
votes
1answer
833 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 ...
0
votes
4answers
477 views

Understanding iptables chains in linux (in socket terms)

Is it true to say: A) OUTPUT chain is for the packets that are "generated" by the machine itself i.e. OUTPUT chain affects connect() function. B) INPUT chain is for packets that are "addressed to" ...
1
vote
2answers
345 views

HTTP Proxy for Windows server

I am sorry that the question is probably not what you thought it is. I have a box in US on colo which is collecting some data but is fairly easy on the resources. it runs w2008r2. and it has one NIC ...
3
votes
2answers
6k views

Exhausting Linux machine TCP socket limit (~70k)?

I am the founder of torservers.net, a non-profit that runs Tor exit nodes. We have a number of machines on Gbit connectivity and multiple IPs, and we seem to be hitting a limit of open TCP sockets ...
3
votes
1answer
282 views

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 ...
1
vote
1answer
2k 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 ...
0
votes
2answers
179 views

my share hosting has disabled all socket functions

I have hosted my website with squarebrothers.com They have disabled curl_exec, fsockopen, socket_create functions. They say that these are security vulnerabilities and they have blocked. And they ...
0
votes
1answer
775 views

supporting web sockets with ZXTM load balancer (zeus / stingray traffic manager)

I have been scouring the internet for information regarding setting up ZXTM to properly load balance web socket connections. ( and also generic information for this task would be handy ) It seems ...
5
votes
3answers
4k views

Is there any javascript ssh client?

I mean pure javascript client that uses HTML5 sockets and doesn't need to be installed, just open single js file in browser. Is it possible to write such client at all?
0
votes
1answer
152 views

mysql socket issues

Whenever I try and run mysql I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I did some research and it looks to ...
1
vote
2answers
516 views

Performance: mysql socket vs. mysql remote

I'm running a couple of projects which consume a lot of MySQL power (10'000 qps in peaktimes)...now I'm wondering what would be the best setup in order to keep it fast and smooth even if the user ...
4
votes
2answers
6k views

What are the ramifications of setting tcp_tw_recycle/reuse to 1?

I set both tcp_tw_recycle/reuse to 1 in my configuration file. What are the ramifications of doing this? If a tcp socket is re-used, does that pose a security risk? i.e. 2 different connections both ...
0
votes
3answers
252 views

Socket and Swap Space

I have a system that is running out of memory and has a lot of open connections. but my swap space is not being used up that much. Can socket/socket file descriptors use swap space? This is for a ...
0
votes
1answer
514 views

Is there a rate limiting tool for linux that can limit rates per process or socket?

I found tc, which allows you to filter by ip, port etc. and then limit rates. But I was wondering if there was anything that could filter by application or limit rate given another process' socket .. ...
4
votes
2answers
2k views

Are there any drawbacks to running memcached on a Unix domain socket instead of the network (assuming one server)?

I’m setting up a Django website to use memcached to cache its pages. (The content of each page won’t change very often at all, so I’m hoping that most of the site will be served from memcached most ...
1
vote
1answer
5k views

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are ...
11
votes
6answers
17k views

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld ...
1
vote
1answer
181 views

How to - UDP NAT traversal using BSD sockets

I have been reading the NAT traversal requiring the use of an external STUN server. There are few public STUN servers but I do not know how to use them to find out my public IP that can be used by the ...
6
votes
5answers
4k views

Does the TCP source port have to be unique per host?

I've learned that a TCP connection is identified by the tuple (source IP, source port, destination ip, destination port). Theoretically, it should thus be possible to have a client from host1:port1 ...
2
votes
1answer
3k views

Apache2 No Listening Sockets, unable to open logs while trying to configure virtual hosts

I'm trying to set up multiple domains with virtual hosts in Apache2. I'm currently getting a "Could not connect" error when I try to browse to my site, and whenever I try to restart Apache2, I get an ...
0
votes
1answer
656 views

How diagnose why Java app fails to open a socket (after running successfully for a while)

I'm trying to diagnose why a Java-based app runs for a while as a client making SOAP webservice calls, and then starts hitting an exception whereby it cannot open a socket. The OS is Windows 2003 ...