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
2
votes
1 answer

Scaling and Load testing Django Nginx and Gunicorn: 502 Server Error + Resource temporarily unavailable gunicorn.sock

I'm doing load testing with locust to see if my server can handle 1500 users. What I'm using: Django, Nginx, Gunicorn, Postgresql My droplet: 24vCPUs, 128GB RAM, 25GB SSD at about 1100 users I start getting the following errors in locust: GET /…
Tony Kyriakidis
  • 143
  • 1
  • 9
1
vote
1 answer

How do i connect to remote Potgresql server via Unix Doman Socket over SSH

I have a two machines, my workstation running on Arch Linux and my cloud server running on Ubuntu. I have installed Postgresql on my server, and it is accessible via Unix Domain Socket on the server itself, now i want to connect to the postgresql…
Aslam
  • 113
  • 3
1
vote
1 answer

Wrap unix sockets to make them HTTP compatible

I want to use signald via web. signald is an application that provides a unix socket and communicates in JSON. I can use nginx to connect to the unix socket via HTTP(S). But signald does not understand HTTP, only pure JSON. It produces errors like…
1
vote
0 answers

git-http-backend blocking with fastcgi on nginx

I have git-http-backend serving git repos through an nginx fastcgi proxy. The nginx config looks like: server { listen 443 ssl; server_name git.example.com; auth_basic "Git Access"; …
trbabb
  • 131
  • 3
1
vote
2 answers

Accepting a connection on a socket on Windows 7 takes more than a second

Here's what I've done: I wrote a minimal web server (using Qt, but I don't think it's relevant here). I'm running it on a legal Windows 7 32-bit. The problem: If I make a request with Firefox, IE, Chrome or Safari it takes takes about one second…
user30421
1
vote
1 answer

difference between local and inet socket?

I noticed that, while setting up opendkim, the options for the Socket are: #SOCKET="local:/var/run/opendkim/opendkim.sock" # default #SOCKET="inet:54321" # listen on all interfaces on port 54321 #SOCKET="inet:12345@localhost" # listen on loopback on…
user508305
1
vote
1 answer

systemd: Shutdown socket-activated service / disable socket-activation

I have an HTTP service (let's call it Foo) with systemd socket activation. I would like to support this setup: monitoring service tells Foo to stop (e.g. POST /stop) Foo finishes it's (potentially long) work then exits. monitoring service polls an…
Graham King
  • 191
  • 1
  • 6
1
vote
0 answers

Socket usage with Linux

I am wondering, does anyone know if there is a setting within linux that designates the max amount of time a socket is allowed open? I ask this because for whatever reason, no matter if there is data streaming or not, my sockets close after 7200…
wuzz
  • 111
  • 2
1
vote
2 answers

Webmail via imap unix socket - good idea or not?

I'm slowly setting up an email system on a Centos 7 server. The particular software I'm using will consist of postfix, dovecot and roundcube, although my question isn't specific to them (I think). I've gotten to the point where postfix and dovecot…
Vilx-
  • 843
  • 4
  • 16
  • 25
1
vote
1 answer

Django deployment with gunicorn socket set up with systemd, gunicorn not honoring gunicorn.conf file settings on Debian 9.4

I followed the systemd deployment instructions here at http://docs.gunicorn.org/en/stable/deploy.html /etc/systemd/system/gunicorn3.service: [Unit] Description=gunicorn3…
Logan Jones
  • 161
  • 5
1
vote
1 answer

netstat shows connected socket with path to it, but path doesn't exist

Im inside a docker container and ran netstat -x | grep docker which got me the: unix 3 [ ] STREAM CONNECTED 62288711 /var/run/docker.sock unix 3 [ ] STREAM CONNECTED 59416957 /var/run/docker.sock unix 3 …
InsOp
  • 113
  • 4
1
vote
0 answers

php-fpm cannot acess unix socket

I'm using different PHP-FPM pools with specific users each one. I just switched memcached to use a socket instead of tcp/udp ports (for many reasons including the recent attacks on the 11211 port). I’ve modified the systemd unit file…
Chazy Chaz
  • 409
  • 1
  • 7
  • 16
1
vote
0 answers

uwsgi socket 0 bound to TCP address

I have run docker build -t and created image and latter container.Now I am looking at my docker logs uWSGI http bound on 0.0.0.0:9090 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:32824 (port auto-assigned)fd3 As I remember the UNIX socket…
MikiBelavista
  • 333
  • 2
  • 5
  • 12
1
vote
2 answers

'/var/lib/mysql/mysql.sock' (13 "Permission denied") when accessing the socket as non mysql user

I am trying to connect to local mysql server I use for development The server starts fine, but I can not connect to it as a non-root user. [root@somepc ]# mysql -u [someuser] -p[somepass] ERROR 2002 (HY000): Can't connect to local MySQL server…
nelaaro
  • 644
  • 4
  • 10
  • 27
1
vote
0 answers

Requests timeout when made from outside the LAN

We are a small company that has an Android app backed by 3 servers running Proxmox. All the connections use HTTPS. The problem we are experiencing is the following: connections made from outside the LAN timeout ~95% of the time. We tried to expose…
Spotlight
  • 111
  • 4