The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
876 views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
57
votes
7answers
68k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...
8
votes
4answers
9k views

Network Error: no buffer space available

After some time of running fine, one of our Windows XP SP3 machines does not open some(!) new TCP/IP connections anymore. Putty says Network Error: no buffer space available, IE won't open any new ...
3
votes
1answer
862 views

Sharing unix socket via docker volume - permission denied

I try to share my php5-fpm socket via a volume with my nginxwebserver. Fpm and nginx are running if different containers and I want to get them working via a shared volume where I place the socket ...
1
vote
1answer
2k 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
0answers
49 views

Rails application deployment, nginx, unicorn, capistrano socket error

I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page. Nginx log contains: ...
2
votes
2answers
51 views

Directory for PHP 5 FPM socket files is deleted after reboot on Ubuntu Server

I've created a directory to store socket files for PHP 5 FPM: sudo mkdir /var/run/php-fpm. It is owned by root:root as well as core PHP FPM process. When PHP FPM is starting, it creates socket files ...
1
vote
1answer
27 views

How do you control the file ownership of a socket managed by launchd

I'm working on writing a daemon that talks to other daemons in the same project over UNIX sockets. For security purposes, it's critical that these daemons only talk amongst themselves (and can't, for ...
0
votes
1answer
119 views

Access to a network server without port forwarding

I have a network with the following structure. The server in PC2 is simple socket server TCP in 8080 port. I need to access to PC2 from other external network by socket client. This socket client ...
0
votes
1answer
242 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
1answer
286 views

SElinux label for php-fpm sockets

I'm attempting to set up multiple instances of php-fpm to run multiple versions of php through apache 2.2 running on centos 6.5. At some point in the future this will end up in a shared hosting ...
1
vote
0answers
42 views

Weird socket behavior in VirtualBox (NAT + PAT)?

I have a Linux VM with NAT and PAT configured. Let's say ports 2000 and 2001 are forwarded to the VM. These ports are also configured for external access on a device such as a router using a domain ...
0
votes
0answers
38 views

Can thousands of files in a directory seriously slow down access to unix socket file?

I try to find out why a site has juddering performance problems. It works well most of the time. And for short time a 2-minute delay occurs. I don't see any database problems. Memory consumed looks ...
0
votes
0answers
86 views

Sockets stuck in FIN_WAIT2 after connected over ssh tunnel

I have a pair of C programs that transmit data over a TCP socket using a simple server/client connection. After connection, the server sends the client data until the client decides to terminate the ...
10
votes
4answers
14k 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 ...
2
votes
2answers
1k 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 ...
0
votes
2answers
258 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 ...
1
vote
2answers
68 views

Communicating between two servers sitting behind their respective NATs

I'm building an web app (Server A) that communicates with a remote server (Server B) that is connected to the internet. Server B resides behind a NAT and is listening to communication on 3 ...
0
votes
2answers
949 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 ...
1
vote
1answer
66 views

Debian 7.4 drops UDP traffic randomly

I'm running Debian 7.4, KVM VPS with the latest updates. I'm getting UDP ports randomly closed for 2-10 minutes for no reason. I'm running gaming servers and the port tester shows the ports are ...
4
votes
1answer
305 views

How to check if a process is non-blocking in linux without using a stack tracer?

A multi-cpu server is running several processes. One process has a thread that should always be in a spinning state, using 100% of the CPU it's been assigned. My current method (besides asking the ...
0
votes
0answers
104 views

Postfix claims it can't connect to mysql server through socket even though mysql is up and auth is correct

I have setup Postfix (version 2.9.6) to use MySQL (5.5.35) to get alias > real e-mail. When I try to send an e-mail to the server it outputs the following in the Postfix logs. postfix/smtpd[3297]: ...
0
votes
1answer
386 views

Unable to access 3ware 3dm2 web interface, failed to start listening socket

I am unable to get to the 3ware 3dm2 web interface. When I attempt to execute 3dm2 from the command line, i get the following error "(0x0C:0x0005): Failed to start listening socket". This was working ...
1
vote
1answer
144 views

Why is there a socket interface on the host and a character device interface on the guest for virtio-serial?

I am trying to establish a communication channel between the host and one of its guest virtual machine using kvm as a hypervisor. For this, I am using virtio-serial. To create the virtual machine, I ...
2
votes
2answers
312 views

On Linux, is there a configurable socket timeout between kernel and user space?

I'm currently fighting with some crappy piece of (custom) server software which doesn't accept its connections properly (written in Java by a PHP programmer who never before touched sockets let alone ...
3
votes
0answers
110 views

timing issue after route add/delete (route not used)

I have an application that is running a raw IP socket, destination of this socket is governed by routes installed via the 'ip route add' command. These routes can change during the lifetime of a ...
4
votes
4answers
6k views

Is it dangerous to change the value of /proc/sys/net/ipv4/tcp_tw_reuse?

We have a couple of production systems that were recently converted into virtual machines. There is an application of ours that frequently accesses a MySQL database, and for each query it creates a ...
0
votes
1answer
816 views

php-fpm + persistent sockets = 502 bad gateway

Put on your reading glasses - this will be a long-ish one. First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an ...
2
votes
2answers
260 views

.NET 2.0: An established connection was aborted by the software in your host machine

Scenario: I try to post a video to YouTube with the following code: YouTubeEntry createdEntry = service.Upload(newEntry); This works fine on my developer machine (running Windows XP). It fails on a ...
1
vote
0answers
205 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
4
votes
4answers
1k views

Can't connect to MySQL using 'localhost' but using '127.0.0.1' it's ok?

My /etc/hosts file looks like this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ...
-1
votes
1answer
114 views

Python cant connect to local MySQL server through socket [closed]

I have a python script which is designed to add things to a MYSQL database. The error I get is this: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock I've checked the ...
5
votes
5answers
3k views

Forward local port or socket file to remote socket file

Quick question - I run two linux boxes, one my own desktop and the other my VPS. For security reasons on the VPS end I opted for socket connections to MySQL (/var/run/mysqld/mysql.sock). I know I can ...
7
votes
5answers
10k views

What should mysqld.sock contain, why don't I have it?

Does anyone know why my /var/run/mysqld/mysqld.sock socket file would not be on my computer when I install (or reinstall) MySQL 5.1? Right now, when I try to start up a server with mysqld, I get ...
0
votes
1answer
329 views

Allow socket connection in Solaris

I have 2 solaris machines and I have an application that opens a socket via port 8556, but for some reason the connection keeps getting refused. When I run a netstat command on the second server ...
0
votes
4answers
8k 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 ...
0
votes
1answer
496 views

How do I get sticky session to work on varnish?

Here is my current config file. Some time it works sometime it doesn't. Note that my website doesn't have a session so I can't use that. backend gw001 { .host = "127.0.0.1"; .port = "9001"; ...
-4
votes
2answers
375 views

what is a 4 socket server? What is “socket” in this context? [closed]

I see that the IBM System x3750 M4 is a "4-socket" server. What does that mean? Does that mean that the server has 4 network ports? What is a "socket" in this context?
0
votes
1answer
154 views

not able to copy socket/inode file

I having the file called 'live' in ubuntu, this is the socket/inode type file. This file has the permission as srw-rw-r-- live I want to create the copy of the file. I not able to copy it using ...
1
vote
1answer
72 views

What happens, if the server runs out of ports?

If the client joins to a server, then there is a local port, and a remote port in each connection. What happens, if more than 65535 client tries to join to my server?
0
votes
2answers
2k views

How does server handle multiple clients on the same port? Multiple sockets or multiple ports? [closed]

I have a misundertanding about some networking theory and because I couldn't find a definitive answer online (most resourceas are theory and theory etc without concise examples) I'm asking here. ...
8
votes
4answers
625 views

how to measure MB/sec on specific socket

We have a web tier where once in a while a web node will slam our data nodes(plural) and if we could see the MB/second coming into that machine on all sockets or on individual sockets, we could ...
2
votes
1answer
186 views

Software to prevent daemons from binding/listening to local ports?

Having an issue with some not-so-bright developers creating daemon processes that are binding to the (not actually reserved) local ports on our Linux servers. Those ports being defined in: cat ...
2
votes
1answer
878 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 ...
4
votes
1answer
2k 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
288 views

How to check if sockets are sending/receiving data on linux?

I often have to debug processes which involve a server client tcp connection. I'd like to check, during times where a client might seem stuck, whether the server is sending it data or not. I can use: ...
1
vote
1answer
1k views

“Address already in use” error from socket bind, when ports are not being used [closed]

I can not bind (using C or python sockets) to any port in the range: 59969-60000 Using lsof, netstat and fuser I do not see any processes using these ports. Other ports such as 59900-59968 and ...
2
votes
2answers
722 views

Differences between UNIX Domain Sockets and Internet Sockets [closed]

I think the differences are You connect to the server by providing the file path instead of the destination IP/port There is no such thing as a source port.. Also, the source IP would only be ...
3
votes
0answers
302 views

mysql client slow login strace

I am experiencing an issue with slow connections/logins to a loaded mysql server, even when connecting via the unix socket file (CentOS 6.3). Queries are completing very quickly -- (0.00 sec) in this ...
0
votes
2answers
230 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 ...