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

High # of sockets in TIME-WAIT state, server unresponsive at load

Our app became unresponsive at high loads, with longer wait times. Process usage was abnormally low (~15% CPU utilisation per process, our app runs on 8 processes). Nginx error log output showed a ...
0
votes
0answers
14 views

WinServer 2003 R2: Socket Error#10060

So I inherited a legacy in-house application, that is supposed to have printing functionality. However, whenever a user prints, it conks out with the following error, "Message: Socket Error #10060, ...
1
vote
1answer
92 views

Milter service needs transport:endpoint instead of “/var/run/opendkim/opendkim.sock”

I have set postfix with milter based on this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy But then posptfix reported that ...
0
votes
1answer
42 views

What better solution to adopt for client server system implementation by java sockets

I need some advice from someone experienced in networking. I have already created a system designed to monitor some tasks (5-30) that are written in java started by a auomatic scheduler or by ...
-2
votes
3answers
62 views

understanding resolv.conf nameserver through system calls [closed]

I am trying to understand how /etc/resolv.conf /etc/nsswitch.conf exactly works and what is significance of nameserver entry 127.0.1.1 I did strace ping google.com to get to know about the system ...
0
votes
0answers
23 views

Network error when running multiple Virtual Boxes

I have a Ubuntu 14.04 physical desktop that's running some Virtual Box instances (also Ubuntu) through Vagrant. The Virtual Box instances are configured to use static ip and with "natdnshostresolver1" ...
0
votes
1answer
64 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
1answer
72 views

How to monitor socket connection usage and exhaustion on a server?

I have a service endpoint (java) that will be getting bursts of thousands of requests per second. In my load testing I had to tweak the server because I would run out of open sockets as there were ...
0
votes
0answers
45 views

pfctl for diverting socket?

I have been trying to use divert socket with pfctl but no luck yet. Basically, I want to use what I could do with ipfw as below with pfctl: ipfw add divert 5000 ip from any to 4.2.2.4 Now I want to ...
0
votes
0answers
92 views

FreeBSD jail (ez-jail) “connect: Operation not permitted” ONLY for endpoints routable from a particular interface when jail is bound to a `bridge`

Edit I answered my original question: basically, binding the jail to a bridge interface was the problem. Now my question is, why is this the case? Is there a way to get it to work with a bridge ...
1
vote
2answers
42 views

When a socket switch to TIME_WAIT state, why I can't see its inode number?

I'm developing a program in python that parses /proc/net/tcp informations, but unfortunately, while I was doing this, I saw a strange thing. Practically, when a socket change in TIME_WAIT state, ...
0
votes
0answers
33 views

windows GUI app open “fake log file” redirect log to tcp socket?

Lots of windows GUI application can save log to a local log file, but the log file have to be file in local driver or network mapping driver. for example: c:\log.log I want to know whether it is ...
0
votes
1answer
92 views

Allow user to bind only certain ports on Linux [closed]

Welcome, I'm looking for equivalent of mac_portacl from FreeBSD. I want to assign to one user only certain ports. Filtering it by iptables isn't enough, because when process works, the port is blocked ...
1
vote
1answer
1k views

Updated php5-fpm, can't use socket anymore

Earlier today, I updated packages on one of my servers. One of those packages was an update to php5-fpm, which seems to have broken my ability to utilize unix:/var/run/php5-fpm.sock. Disclaimer: I ...
2
votes
0answers
2k views

How to solve SocketException: Permission denied: connect

I recently encountered a problem that is giving me a headache and I need help ... The System consists of two subsystems, called A and B, each running on a standalone Tomcat instance and currently ...
0
votes
1answer
2k views

NGINX connect() to unix:/var/run/php-fpm/vhost.sock failed

I use Centos 6.5 (64bit) with Nginx, PHP-FPM. Nginx with fastcgi connect to PHP-FPM using unix domain socket. When I place the socket in a directory with proper permission, it's ok. However when I ...
1
vote
1answer
152 views

Increase number of connections per socket

How do I increase the number of connections each socket can accept? I know that you can increase the total number of connections using: # sysctl kern.ipc.somaxconn=4096 But each connection is then ...
2
votes
1answer
235 views

Create a link to the Unix socket [duplicate]

Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted ...
1
vote
2answers
121 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 ...
1
vote
1answer
331 views

Uwsgi and flask with unix socket instead of URL

I was trying to find out the difference between a socket as a unix file and a socket that is a ip and port. If I switch something like uwsgi to use a file instead of a port and ip, how do I then ...
0
votes
1answer
280 views

Uwsgi - Socket file or URL

I was installing UWSGI and it looks like for the socket I can specify either a URL and port or instead I can specify a socket location file. I was wondering if anyone can tell me what the difference ...
1
vote
1answer
2k views

Why would a client send a RST packet as reply to a SYN,ACK?

I have a HTTP webservice where sometimes the connection setup fails in a strange way: client sends a SYN packet server sends a SYN,ACK reply client responds with RST In which situations could a ...
0
votes
1answer
93 views

TCP client and server work for X times but hang after that

I'm a software engineer, but I think my problem needs a network engineer... For the software side of things, have a look at my Stack Overflow question: ...
0
votes
0answers
244 views

socat UNIX to TCP-LISTEN raw

I have a virtual machine on Linux host which uses a virtual serial port connected to a UNIX socket as I/O. I would like to access this socket using TCP with working control characters (ctrl+c, ...) ...
2
votes
0answers
108 views

How do I find the path of socket?

Is there any method that can allow me to find the path of socket if the type of socket is PF_UNIX? And I have another question: let's assume that I have the following output of lsof: COMMAND PID ...
1
vote
1answer
230 views

Do keepalives to socket connections exist?

Pre briefing: Although my question is broad on purpose, I am dealing with nginx connecting to php-fpm (fcgi), which is served via a local socket (/tmp/somesocket.socket). Nginx has a setting to ...
0
votes
1answer
372 views

Issue with Dovecot connection staying alive : memory or configuration issue?

I had a similar question posted a while ago, and I Thought it fixed my issue, but that was unfortunately not the case. I have a benchmark application which connects about 500 users to a Dovecot 2.2.5 ...
0
votes
2answers
578 views

Don't manage to set up iptables rules for client/server socket exchange on localhost

I am a client/server-IPC-iptables near-newbbie. I have made my homeworks deeply during one year and thought this should work : # cat /root/firewall/iptable | nocomment iptables -F iptables -F -t nat ...
-4
votes
1answer
51 views

How do I map a socket port between the guest and the host on Parallels? [closed]

I am trying to analyse some client server applications on Mac and Windows and I would like to configure Parallels so it will map a set of ports between the guest and the host. This would allow me to ...
3
votes
0answers
414 views

Unix socket connection limit

This may appear like an already discussed/answered question. But I am specifically looking for info which I couldn't find anywhere answered clearly. I have an Nginx + php-fpm setup which uses unix ...
0
votes
1answer
259 views

Socket based byte counts

I see a lot of tools to get the RX and TX byte counts for transmission on interfaces, is there any tool/program that I can use to get a total transmitted byte count for a single specified socket? I'm ...
1
vote
2answers
439 views

TCP vs UDP Error-Checking

I've bounced upon two articles that describe in-depth on how TCP and UDP connections work. However there is some kind of inconsistency. Where one article tells me that UDP does no Error-Checking at ...
0
votes
2answers
312 views

socket timeout exception on ubuntu

We have solr router and shards. This appears in the jetty log of the router when doing faceted search across all the shards. org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: ...
7
votes
1answer
4k views

Apache in linux-vserver won't start, can't create socket

During extensive research and testing to write a proper question worthy of stackexchange I found a solution: rebuild the libapr1 package inside the guest.I thought I'd nevertheless post this ...
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 ...
0
votes
1answer
894 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
votes
2answers
5k 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 ...
0
votes
1answer
116 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 ...
3
votes
1answer
1k 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 ...
1
vote
3answers
5k 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
1answer
60 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
876 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
138 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 ...
0
votes
1answer
602 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
289 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 ...
0
votes
1answer
421 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 ...
1
vote
0answers
239 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 ...
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
3k 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 ...
0
votes
1answer
113 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 ...