Questions tagged [socket]

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.

564 questions
1
vote
4 answers

How to I prevent another process from listening on the same port as Apache

I have Apache running Solaris using the mpm module, and it listens on port 8080. Every once in a while, someone will start up a Tomcat instance on the same host. The has the affect of directing all the traffic to Tomcat. Once Tomcat is shutdown,…
brianegge
  • 1,064
  • 2
  • 14
  • 23
1
vote
0 answers

System.Net.Sockets.SocketException

We are seeing this exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond when submitting REST requests…
Matt Evans
  • 133
  • 1
  • 8
1
vote
0 answers

Issue deploying Flask Rest Api on Nginx

I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial example code to my mine and POST requests aren't…
NeoSennin
  • 51
  • 6
1
vote
1 answer

PHP-FPM not working on sockets but TCP only

I have PHP5-FPM installed on Debian with nginx. When I try to open a PHP page then I get Error 502 Bag Gateway. I found out that it is because I am using sockets which looks like is not properly configured. I have tried to fix it by applying…
Frank Martin
  • 741
  • 2
  • 12
  • 24
1
vote
1 answer

Sending Message to server over socket on startup using Upstart

Problem I need to send a message to a a server via a TCP socket during computer startup. We are using Ubuntu 14.04 and therefore, by default, must use Upstart as the system initialization. (We also have other computers running Ubuntu 16.04 that can…
1
vote
1 answer

PHP-FPM socket reuse causes errors

I have a webserver container running in App Engine which serves a REST API. I've tried to go for a relatively standard implementation - nginx + PHP-FPM using TCP sockets (I haven't gotten a unix socket to work for some reason). The DB connection is…
user41758
1
vote
0 answers

s3 logs - What are these values?

I am trying to figure out why I am having a lot of socket timeout errors when running serverless deploy -v - https://github.com/serverless/serverless I enabled logging on the S3 bucket that the error is happening on, the first CloudFormation file…
Jim Factor
  • 111
  • 2
1
vote
0 answers

Apache - a sudden “Too many open files”

So we have an apache server running in Linux with no issue. Yesterday we made a server restart and since then we noticed that the number of open files by the apache processes is keeping increasing until the server after few hours failed to receive…
Fatema
  • 11
  • 3
1
vote
0 answers

No buffer available on Debian-Machine

I'm running a LAMP-Stack on a debian machine for a while now. I configured it the way I'm used to, which never produced weird network or memory issues. On random days at random time I'm getting a bunch of mails from monit.d about connection errors…
moe
  • 11
  • 2
1
vote
1 answer

How to find source IP Address?

How to find the default Default IP Address if my I am connected to more than one network? I found one link http://libtins.github.io/tutorial/sending/ But In "Sending network layer PDUs" It is written that PacketSender sender; IP pkt =…
sk110
  • 11
  • 1
  • 2
1
vote
0 answers

mysql wont connect to symlinked socket when given full path, but connects with relative

So I'm super confused. I have a test build that started breaking because a mysql socket was attempting to be created in such a deeply nested folder that its file path name exceeded the 108 character limit. So my thought was to put the socket in the…
Rooster
  • 495
  • 2
  • 7
  • 21
1
vote
0 answers

How to cope with only one SMTP socket open simultaneously on VPS?

I own a VPS used for hosting about 30 domains. On each domain I have several email accounts. In total more than 150 accounts. In the last couple of weeks, I noticed that sometimes (several times a day, mostly in the peak hours) there are several…
1
vote
1 answer

Troubleshooting connection timeouts and SYN_RECV

My DigitalOcean droplet fails very often to connect to different resources, like making a REST call with curl or establish SSH connection. Every time it happens, I can see sockets with SYN_RECV state on the remote machine that I wanted to…
aguyngueran
  • 111
  • 1
  • 3
1
vote
1 answer

force dnsmasq to bind an interface for DHCP

I want to use dnsmasq with two configs on two interfaces, which should be bound locally. If you read the manpage, it looks like interface=wlan0 bind-interfaces should do the trick. But it always binds the dhcp server to all interfaces: udp 0 …
allo
  • 1,620
  • 2
  • 22
  • 39
1
vote
2 answers

Multiple readers on a Unix Domain Socket?

I was hoping to have multiple clients reading from /dev/log (rsyslog and a custom tool) which I understand is a unix domain socket. How can this be achieved?
user357714
  • 11
  • 1
  • 2