Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
18 views

Exim & Postgrey with UNIX socket on FreeBSD

I'm configuring Exim to cooperate with Postgrey on FreeBSD 12.0-RC1 and everything work's very well when MTA connecting via inet, but when I change to UNIX socket there is no reaction even if I run ...
0
votes
0answers
29 views

Haproxy with unix domain socket backend not working

I have been trying to set up Haproxy (version 1.8.8) on my ubuntu 18.04 LTS desktop machine with a unix domain socket (streaming) in it's back-end. I have added following configuration: frontend ...
0
votes
0answers
34 views

How to troubleshoot UDP packet delay on Windows 10?

I have two computers on a local network. The server, which I cannot modify, is sending UDP packets regularly to the client, which I can modify. The client is running Windows 10 and has up-to-date NIC ...
1
vote
0answers
20 views

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 ...
7
votes
0answers
58 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
0
votes
0answers
20 views

Delay between close() and TCP FIN

I've been investigating an intermittent but frequent problem on some of our production servers for a number of weeks, and it all boils down to a delay between the server closing the connection and the ...
0
votes
0answers
72 views

Nginx as Reverse Proxy for multiple servers binded to proxy using UNIX sockets - how to reached in LAN

I am trying to configure nginx as a reverse proxy for multiple servers on my LAN. They should go out on my WAN with different subdomains. Unlike the approach described in Use Nginx as Reverse Proxy ...
1
vote
1answer
139 views

Apache and PHP-FPM security with mod_proxy_fcgi

I use PHP-FPM in a shared hosting configuration. Each FPM pool runs as a different user. Apache runs as www-data. Apache connects via a socket using mod_proxy_fcgi. I allow users to use .htaccess ...
0
votes
1answer
110 views

Nginx keepalive when using a UNIX socket

Is there any benefit or performance gain when using keepalive on an upstream that is using a UNIX socket as a server, for example: upstream test { server unix:/tmp/test.sock; keepalive 60; } ...
0
votes
2answers
158 views

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'...
0
votes
0answers
18 views

Denial of service attack on a publisher application

I have an application that is bound to a socket which is used only for publishing some data to other applications on the receiving end. I am looking for scenarios for denial of service attacks on such ...
-1
votes
1answer
17 views

Seeing/dumping incoming data on a port?

I need to check if some client is sending some data on a specific port of a raspberry pi/debian or windows. Is there some built in program that I can launch to check a particular port for incoming ...
0
votes
0answers
36 views

Glassfish crashes due too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
0
votes
0answers
53 views

How to forward web-socket request to microservice using nginx

I wanted to forward web-socket request to microservice using nginx. I am hitting https://some-host/download-zip-service/downloadFile By this the calls are landing on download-zip-service and ...
0
votes
1answer
113 views

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 daemon Requires=gunicorn3....
0
votes
0answers
50 views

Can't connect to server using sockets

I am using this library for networking my game, and it works great on localhost; but I put my server.exe listener on my AWS EC2 windows remote instance, and I have not been able to connect to it. ...
1
vote
1answer
144 views

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 ...
0
votes
1answer
24 views

What happens to a ESTABLISHED connection after a firewall restriction is enabled between the hosts in the connection?

I would like to know what will happen to an ESTABLISHED connection between two hosts (say A:9999 & B:8888), after a firewall restriction enabled between those two hosts thus preventing any ...
0
votes
1answer
121 views

Nginx confusing $fastcgi_script_name with $fastcgi_path_info

Here is the relevant part of my Nginx configuration file: http { log_format fastcgi '$remote_addr - $remote_user [$time_local] "$request" ' '$status $...
0
votes
0answers
88 views

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’...
0
votes
1answer
111 views

How can I count / view all fast-path sockets on windows server?

In case you're not familiar, fast path loopback sockets: https://blogs.technet.microsoft.com/wincat/2012/12/05/fast-tcp-loopback-performance-and-low-latency-with-windows-server-2012-tcp-loopback-fast-...
0
votes
2answers
295 views

Bind a tcp socket below 1000 with a non root user using Systemd, java and Ubuntu 16.04

I wanted to try socket activation with Systemd and Java on my ubuntu server 16.04. My idea is to make my program able to open directly a standard socket number with a user that is not root. I ...
0
votes
1answer
49 views

How does UDP sockets know which source address to respond to?

I have understood that UDP sockets are fully identified by destination IP and destination port. The IPs are in the IP datagram´s header yes, but when the datagram arrive at its destination, only the ...
1
vote
0answers
358 views

socket.io handshake fails on Google https load balancer

We have the following setup for Google HTTPS load balancer. Two Frontends: 1. HTTP traffic to static IP 2. HTTPS traffic to the same static IP(DNS configured to a domain name) Host and Path rules ...
3
votes
1answer
504 views

How to close a port with no process attached?

This question is similar to Network port open, but no process attached? and netstat shows a listening port with no pid but lsof does not I tried all i can do(as root: netstat, lsof, ls -al /proc/*/fd ...
0
votes
0answers
26 views

How can I route a secure socket connection to different destination servers via a proxy?

My task is to address different servers via secure socket connections at the destination. But the problem is that you can not specify different target servers over normal socket connections. Also, ...
0
votes
1answer
120 views

Uderstanding netstat output

When I run netstat -b on Windows 10 I get lots of results of similar nature TCP 127.0.0.1:64248 LocalHostName:64249 ESTABLISHED [w3wp.exe] TCP 127.0.0.1:64249 LocalHostName:...
1
vote
0answers
254 views

Error when SSH forwarding TCP to unix socket

I am trying to use ssh to forward a TCP connection on a local port to a Unix socket on a remote server, but I keep getting errors. I started by having nc listen on the remote server: remote$ nc -lU /...
1
vote
0answers
134 views

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 ...
-1
votes
1answer
425 views

Why do the port change when sending TCP data on localhost [closed]

I'm new to network programming and I'm starting simple. I got 2 simple python scripts both running on my machine, a server and a client, the client sends some data using the port 80 and the server ...
-3
votes
3answers
39 views

How do I launch a service on linux

I have written server-socket Java application (not a web application) and I have a server running on Linux machine. How do I deploy this application so that I can request from anywhere from any app (...
0
votes
0answers
123 views

How to start LXC container with local public IP through (host) systemd socket activation?

How to start LXC container with local public IP through (host) systemd socket activation? Terms Local network - intranet network within simple network range (e.g. 192.168.123.0/24) with many users ...
1
vote
2answers
2k views

'/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 ...
0
votes
0answers
104 views

hping3 does not send sequence and ack numbers as specified?

To be precise, I am sending a TCP Ack Packet setting my own manual seq and ack values but the result is different than entered in wirshark. Command: hping3 -s 8000 -p 8000 192.168.1.95 -M 1 -L 1 -A ...
0
votes
0answers
804 views

Firewall blocking data transmitted through Python socket

I have an application written in Python 3 which communicates with an external SIP proxy server through its public IP. Basically the application I wrote sends out a SIP invite to the SIP proxy through ...
2
votes
2answers
469 views

Should I worry about hanging sockets when setting keep-alive timeout to Infinity?

Some initial context to this question. Currently I have a application cluster deployed behind a ALB which maintains persistent keep alive connections with the application. This application is under ...
1
vote
0answers
780 views

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [...
1
vote
0answers
21 views

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 ...
0
votes
0answers
70 views

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 ...
-1
votes
2answers
347 views

Assign Domain Name on a IP:Port Listener [closed]

I have a Java Socket Listener at Port :5000. And since i have an Public IP Address on my Server, it is available at something like this: 123.123.123.123:5000 It is fine. But now, what if i don't ...
1
vote
1answer
1k views

Speed up mongodump+mongorestore

I have created a script to copy a MongoDB database to my machine. I am creating an SSH tunnel (ssh -L ...) then I connect to the tunnelled port with mongodump then I pipe its output to mongorestore: ...
2
votes
1answer
2k views

Expose a Unix socket to the host system from inside from a Docker container

I would like to run aweb server inside a Docker container that listens to a Unix socket, instead of to a port. I'm finding a lot of results on sharing the Docker socket, but I don't think that's what ...
0
votes
1answer
563 views

Unable to stop an invisible socket on port 80

I want to run my Apache server but I got this error: # /usr/sbin/httpd -k start (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, ...
0
votes
2answers
178 views

How to setup Nginx and PHP-FPM socket

This is my third attempt at posting this question now after incorrectly posting to both super user and Stack Overflow. Hopefully this is now the right place! I have taken over managing the company's ...
1
vote
0answers
392 views

Getting systemd-journald (219) to listen somewhere other than /dev/log

I would like systemd-journald in systemd 219 (on el7, so the package is systemd-219-30.el7_3.9.x86_64) to listen for syslog messages on /run/systemd/journal/dev-log, and have /dev/log be a symlink to ...
1
vote
0answers
378 views

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

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 ...
2
votes
1answer
4k views

Unable to restart a systemctl service remotely as a non root user

I have a systemd.socket named gunicorn.socket which I would like to restart after updating some code on a remote server. I've followed the steps detailed in Allowing a non-root user to restart a ...
1
vote
0answers
589 views

Reaching maximum TIME_WAIT sockets (tried tcp_fin_timeout)

tl;dr: How do i get the kernel to drop TIME_WAIT/closing sockets as forcibly and fast as possible? I don't care about data being lost since I'm not sending any. I'm currently running a little test ...
0
votes
1answer
100 views

How to modify Socket Close time for Unreachable IP on Windows?

First of all, please look this question to understand what I mentioned. When I try socket close in windows OS for unreachable IP with UDP, I got the three-second delay. As you can see from the ...