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
2answers
404 views

How to diagnose large number of TIME_WAIT connections

We have a production issue with only one of our servers and have correlated slow performance to an abundance of sockets in the TIME_WAIT state. Without drawing this question into a huge backstory, we ...
1
vote
2answers
1k views

Linux server resend SYN ACK

I am troubleshooting a connection timeout problem between two Linux boxes, where it seems the ACK to SYN-ACK was lost on the server's stack. The tcpdump is done on the server side. The client got ...
1
vote
1answer
1k views

How to create a socket with mknod correctly?

I try to create a socket for communication between uwsgi and nginx. The difficulty is that I don't know what major and minor numbers I should specify: v:/tmp# mknod wsgi_pgame.sock c mknod: missing ...
1
vote
1answer
100 views

How to determine which direction to scale a web application

I am currently developing a web application and am trying to figure out the best way to host it. I've looked around, used dozens of different phrasings, read hundreds of posts and comments. but none ...
0
votes
1answer
2k views

Configuring Postfix to use milter (archiveSMTP)

How does one config Postfix to use the milter "archiveSMTP" ? The milter config instructions (http://www.dancingfortune.com/projects/archivesmtp/download.php) mention only one socket for ...
1
vote
0answers
363 views

UDP socket receive buffer size change on RHEL6.3

Our system used to work on RHEL5.3 And the socket receive buffer size is 64k. And that works fine. We can get message size up to 64k on UDP socket. But after system upgrade, it is running on RHEL6.3 ...
2
votes
1answer
2k 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 ...
0
votes
2answers
254 views

Simulating many client connection to server

I've written a protocol on top of TCP using C# Sockets class which allows the transfer of files between many clients, and put it on a Windows Server 2008 VPS. I have then written the client-side ...
1
vote
1answer
725 views

NGINX 1.3.14 proxy Websockets

Websocket support is built in to Nginx as of 1.3.13, so I should have it. Can someone please provide me the simplest example of a config that will allow my nginx (on Centos 6) proxy to accept an HTTP ...
0
votes
1answer
625 views

http connect tunnel to proxy in front of a websockets server?

I am having a hard time with this one. We have a websocket server listening on port 80 at myserver.com/wsDemo?ID=12. We need to test a client program by connecting it to this server through a proxy. ...
0
votes
2answers
436 views

Adobe AIR ServerSocket to remoteIP?

I have a mobile multiplayer game that uses the AIR serverSocket class to connect to an AIR server app on a laptop set up as a wifi hotspot. The requirements have changed and now the server must be ...
0
votes
2answers
3k views

Connection Refused Error Java/Linux

I'm trying to move an existing project over to a new (linux) server environment (note, I have no direct access to the code nor do I have any knowledge about the project in general - talk about a great ...
2
votes
1answer
2k views

Nginx not proxying websockets properly

Using the development version of nginx (1.3.12). In my relevant file under sites-enabled: upstream twisted { server 127.0.0.1:8088; } server { listen 80; ## listen for ipv4 ...
0
votes
1answer
479 views

Inject packet to a different NFQUEUE

I have an NFQUEUE, for IPv6 packets hooked to PREROUTING chain of mangle table in ip6tables. Once I receive a packet in user application, I modified the header. Infact, modified the header from IPv6 ...
-2
votes
2answers
300 views

Is this a 2 or 4 CPU Configuration? [closed]

I'm looking at this server configuration (I'm reviewing a customer's potential order for a server for our software) and I'm trying to understand what kind of CPUs would come on the server. HP SB Gen8 ...
1
vote
2answers
483 views

Websockets and Firewall

I asked this question on Stack Overflow first, but then I thought Server Fault could be a better place to post it. I have two WebSocket servers both running on different ports than 80 and 443. ...
-2
votes
3answers
595 views

Can I make a MySQL socket file that points to a different machine?

I'm using a MySQL tuning script that in turn uses the socket (.sock) file on the local drive to connect to MySQL. Even though I have a copy of MySQL on this server, however, the MySQL that I want to ...
-1
votes
2answers
7k views

Python - socket.error: [Errno 98] Address already in use [closed]

I'm currently attempting to setup a SiriServer (that's beside the point) on Xubuntu 12.10 x64, when I run the server python returns error socket.error: [Errno 98] Address already in use. The ...
-2
votes
1answer
52 views

Densely packed Xeon 5400 processors [closed]

I'm doing lots of data crunching in a private cloud. I really like the price point of the Intel Xeon 5420 processor so I would like to run as many of these as possible. I have some running in ...
1
vote
1answer
552 views

Websockets not working (ssl acceleration?)

Testing a socket.io application in the PROD environment for the first time, we found that while the xhr-polling transport (Ajax long polling) works, the websocket transport does not. Looking at the ...
0
votes
1answer
143 views

Bind socket to port 25 in EC2

I am trying to bind a service that I built to port 25. It is a rudimentary SMTP server in PHP. The problem that I am having is that if I try to bind to that port ... the code binds to some other ...
2
votes
0answers
201 views

what can put linux process managing connection pool into bad state, so it restarts them continously?

I have an application with pool of connections to MySQL. At some point, in production, every 1-3 seconds some socket is closed. As a result my app restarts this connection. This is pretty big pool ...
5
votes
1answer
2k views

When to use a MySQL socket and when to use a host:port?

Many applications allow me to connect to Mysql using a username, password host and port. Some allow me to configure a socket instead of the host:port. Is there any clear benefit of one over the ...
-2
votes
1answer
738 views

Unable to do telnet on websocket server

My websocket server is running on port 9000 on an ec2 instance. It's working perfectly when accessed through a browser. But I am unable to do telnet to it. I did telnet ec2.x.y.z.com 9000 and the ...
1
vote
1answer
356 views

How to forward a server socket to a (possibly ssh) client

I'm wondering if/how I can realize the following setup. It doesn't seem to fit the standard ssh port forwarding model. I have a client machine A. I have a server application running on machine A, ...
1
vote
3answers
8k views

ERROR 2002 MYSQL socket /tmp/mysql.sock

A have already read everything about this error but I coundn't solve the problem. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38) I'm trying to install ...
2
votes
2answers
8k views

Caused by: java.net.SocketException: Software caused connection abort: socket write error

I running JSP on Oracle 11g, Weblogic 10.3.4. I have 2 managed server and a oracle admin server installed. I am encountering an error where intermittently the log file of the 2 managed server and ...
1
vote
1answer
432 views

Access denied to mysql cause by invalid server hostname bind address

I cannot login to mysql using the terminal. [root@fst mysql]# mysql -h localhost -u admin -p Enter password: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES) I ...
1
vote
1answer
234 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 ...
4
votes
2answers
3k views

I can't run uwsgi as normal user

I want to run uwsgi server as www user, but if I write: uwsgi --socket $SOCKET --chmod-socket 666 --pidfile $PIDFILE --daemonize $LOGFILE --chdir $CHDIR --pp $PYTHONPATH --module main ...
1
vote
1answer
1k views

socket.io session ends with HAproxy

i'm still 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
1answer
266 views

Apache SMTP connection times out

A web server that has successfully sent mail using the hosting providers's SMTP server before seems to suddenly have lost connection to the SMTP server. [Wed Nov 28 09:51:27 2012] [error] [client ...
1
vote
1answer
418 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 ...
2
votes
1answer
64 views

What is the most efficient way to connect my application on one VM to my Postgres DB on another VM?

I have 1 physical machine with 2 VMs (VMWare esxi) - one for database (PostgreSQL 9.2.1), and one for application. I'd like my application to connect to my database in an efficient way, and I've heard ...
3
votes
1answer
1k views

Maximum limit of filepointer in php reached and not changeable

I have a server with the current 5.3.x version installed. Since we are running a really simple and small server in php using sockets, that connects to a lot clients using sockets we need to raise the ...
0
votes
1answer
177 views

ipv6 port 445 does not accept the request from a global type address

I want to scan port 445 on my Windows server 2003, but my scanner only has one type ipv6 address which is global not link-local. When I do this, I find that I can't find port 445 open. But I use the ...
3
votes
2answers
4k views

Apache will not start in Ubuntu 12.10: no listening sockets available

I'm not able to start the fresh apache2 installation on my development machine running Ubuntu 12.10. michal@ubuntudesktop:~$ sudo service apache2 start * Starting web server apache2 no listening ...
1
vote
1answer
113 views

Packet Size modification over Sockets [closed]

I am doing socket programming in QT and I have to design a protocol to transfer DATA over TCP/IP. Now my protocol design is SIMPLE and it sends commands in a fashion that the first BYTE of the data ...
2
votes
2answers
899 views

Redirect websockets to port?

So, I've got a WebSocket server in C++, that is a completely stand-alone entity - handles header parsing, receiving, sending, all of it on its own, listening directly to the port. Problem is, it ...
3
votes
1answer
165 views

Appears to be “randomly” switching between the acl matched backend and the default backend

I have HAProxy acting as a proxy in front of: An NGinx instance An in-house load balancer in front of multiple dynamic services exposed with socket.io (websockets) My problem is that from time to ...
0
votes
1answer
727 views

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

The IP address on my server recently was changed, and after the change, i performed a restart and when it came back online MySQL stopped working. I am running Debian 6. I type mysql -u username -p ...
0
votes
1answer
384 views

Monitor uSWGI via Nagios: invalid socket

I'm trying to monitor uSWGI via Nagios, but according to uWSGI I have specified an invalid socket. The socket path I got from the JSON config file which also says chmod-socket: 666 so I have a hunch ...
1
vote
1answer
2k views

clamd says socket in use by another process but I can't find one

I'm running CentOS 5.3 (Final) and using rpmforge I installed clamd and prereqs ok. I started clamd and ran a freshclam all ok. But if I run "clamd PING" or clamd /path/to/file I get ERROR: ...
5
votes
1answer
909 views

Where are my TIME_WAITs on Mac OS X?

No TIME_WAITs on Mac OS X Normally, when a TCP connection is closed, the socket on the side where close() is called first is left in the TIME_WAIT state. When one of the peers is a Mac OS X (Lion) ...
3
votes
1answer
418 views

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

Error when starting Windows Service: Connection “actively refused”

I have used .NET to create a service installation package (msi) that, when run, installs a Windows service designed to run an instance of Apache Solr (to aid in searching from a web application). I am ...
0
votes
3answers
351 views

MySQL Not Turning On

I have an amazon ec2 instance running on the Amazon Linux AMI and its a micro instance. I wanted to install Django onto my server so I entered these commands wget ...
0
votes
1answer
559 views

What should be proper permission of unix socket?

I have set up nginx to connect to php5-fpm through unix socket instead of tcp. I've read that this has less overhead and hence boost performance. Now I'm wondering what should be the proper permission ...
0
votes
1answer
323 views

Using mod_wsgi with mpm_itk: socket permission issue

I'm using mod_itk as MPM for increased security in shared environment. I also have a Firefox Sync Server within one of the VHosts I host. That vhost is restricted to a certain user via AssignUserId ...
5
votes
3answers
10k views

How to set up memcached to use unix socket?

While I could use memcached on Debian to use the default 11211 port, but I've had great difficulty setting up unix socket, Form what I'v read, I know that I need to create a memcache.socket and add ...