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

0
votes
4answers
12k 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 ...
1
vote
3answers
181 views

Granting PHP permission to send/receive requests

I've written a PHP websockets server based on this library: https://github.com/Flynsarmy/PHPWebSocket-Chat This library operates as a server, and handles all incoming requests. The client can ...
1
vote
2answers
5k views

Setting up PHP Websockets

I've written a game using PHP web sockets that runs well on my local development server. I'm now attempting to run the web socket server on a non-local server, but my client JavaScript isn't able to ...
1
vote
1answer
155 views

why there are three(it should be two) process related to screen when using ps command?

you can see there are three processes which are related to screen command: [world]$ ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hugemeow 28938 0.0 0.0 66080 ...
1
vote
3answers
2k views

Can haproxy be used to balance unix sockets?

In nginx it is fairly simple to configure it to proxy unix .sock files Eg: upstream bla { server unix:///home/sam/Source/bla/tmp/sockets/thin1.sock; server ...
1
vote
1answer
2k views

Setting up PHP 5.4 with MySQL to use Unix Sockets

I've compiled PHP 5.4.5 from source, and I've installed nginx 1.2.1 and mysql 5.1.63-0ubuntu0.11.04.1 from apt-get on my Ubuntu 11.04 LTS server. I installed nginx using this: add-apt-repository ...
-1
votes
4answers
5k 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
643 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
523 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
651 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
20k 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
4k 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
137 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
199 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
587 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 ...
10
votes
4answers
12k 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
78 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
262 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
323 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
17k 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. ...
2
votes
1answer
742 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
362 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
179 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
213 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
2k 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
529 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
114 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
529 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
751 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
345 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 ...
8
votes
2answers
6k views

Create Unix Named Socket from the Command Line

Is there a command similar to mkfifo but for domain sockets?
1
vote
0answers
266 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
876 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
520 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
352 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
322 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 ...
2
votes
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
184 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 ...