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
50 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
473 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
129 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
136 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 ...
4
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
535 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
264 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
6k 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
4k 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
383 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
160 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 ...
3
votes
1answer
2k 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
948 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
206 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
352 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
62 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 ...
2
votes
1answer
980 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
148 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
100 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
688 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
143 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
691 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
309 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: ...
4
votes
1answer
780 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
369 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
507 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
325 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
302 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
264 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 ...
4
votes
2answers
8k 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 ...
3
votes
2answers
2k views

Nginx to apache reverse proxy, instruct use of unix sockets

My Nginx reverse proxy works on the same machine as the webserver(apache) as follows server { server_name site.net; location / { proxy_pass http://localhost:82; ...
3
votes
2answers
2k views

linux : netstat listeting queue length

Is there a way to view queue length on listening socket under linux, the same way as netstat -L outputs for freebsd? I.e. you can see X/Y/Z in netstat -L output, but netstat under linux doesn't ...
0
votes
2answers
477 views

Node.js, Nginx and Varnish with WebSockets

I'm in the process of architecting the backend of a new Node.js web app that i'd like to be pretty scalable, but not overkill. In all of my previous Node.js deployments, I have used Nginx to serve ...
1
vote
0answers
255 views

Suphp connection reset by peer in error logs

In my Linux server's logs I have this record nearly every 5 minutes. I couldn't find the reason for two weeks and I would be very happy if you can recommend me a way to diagnose the problem. It is ...
2
votes
1answer
1k views

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 ...
0
votes
4answers
10k 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
162 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
4k 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
135 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
1k 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
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
586 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
453 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
524 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
17k 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
117 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 ...