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

-1
votes
4answers
4k views

Do all LGA 1155 Motherboards work with all LGA 1155 CPUs?

Hardware is an area that I have very little competence in. I've recently been tasked with the creation of a new server for the company I work for. I've priced out a motherboard and CPU for the ...
3
votes
1answer
609 views

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 ...
1
vote
1answer
483 views

Redhat linux: Slow start of new socket connections

I am having problems with a Red Hat server 2.6.18. The creation of a new TCP socket takes very long - once it is established it is fine. iptables and selinux are disabled - is there any other ...
1
vote
1answer
573 views

WSAENOBUFS errors when performing HTTP connections on Windows Server 2008 x64

We are trying to transfer large number of files from a network share into Openstack using a custom written Erlang application (using Erlang version R15B). After about 20k files transferred the Erlang ...
10
votes
4answers
18k views

Nginx + php5-fpm = “File not found”

I've hit a wall whilst setting up a site using nginx / fpm. The page displays "File not found", and this appears in the nginx error.log: FastCGI sent in stderr: "Primary script unknown" while reading ...
4
votes
1answer
3k views

TCP Windows Size vs Socket Buffer Size on Windows

I am new to Windows networking. When people talk about TCP tuning on Windows platform, they always mention about TCP Window Size. I am wondering whether Windows uses the concept of "Socket Buffer ...
0
votes
1answer
125 views

Python urllib2 and php port conflict

I have python script that is called by PHP via exec. It uses urllib2 and beautifulsoup. The php-fpm runs on port 8000, i have different ports for different pool and I assume they are ok when php-fpm ...
0
votes
1answer
177 views

Socket(TCPIP) Unstable

I have a setup of a SCPI server in a Win7 PC and have 2 other programs talking to it locally(127.0.0.1) over TCPIP socket 5025 and 5029. This worked well and stable in a fresh PC, but when we moved ...
2
votes
1answer
547 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
11k 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
257 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
294 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
15k 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
682 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
1k 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
327 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
1k 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
173 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
5k 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
200 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
514 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
469 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
709 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
308 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
246 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
843 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
487 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 ...
4
votes
2answers
7k 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
298 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
180 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
795 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 ...
7
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
154 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
536 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
266 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 ...