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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
20 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
12 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
13 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
39 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
0answers
59 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
22 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
69 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
20 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
53 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
103 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
34 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
133 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 ...
0
votes
0answers
187 views

Redis not run with Unix Socket Enable on Centos 7 with NextCloud

I need to activate a redis cache on nextcloud server! To do this I use unix sockets (they should be more powerful)! Then when installed redis and configured in nextcloud at the start of the redis ...
3
votes
1answer
219 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
23 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
42 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:...
0
votes
0answers
163 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
67 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
193 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
37 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
86 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
1k 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
39 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
550 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 ...
0
votes
2answers
344 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
509 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
18 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
46 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
190 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
694 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: ...
0
votes
1answer
984 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
0answers
71 views

How to provoke a TIME_WAIT state on the server side Windows/Linux

i am wondering how to create a socket in TIME_WAIT state so i cannot bind again without SO_REUSEADDR. open(server1); open(server2); open(client); bind(server1, address1); listen(0); connect(client, ...
0
votes
1answer
265 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
0answers
388 views

Address already in use: AH00072: make_sock: could not bind to address [::]:80

I have modified some settings in /etc/apache2/sites-enabled/000-default.conf and now I can't start Apache. What's the reason and how can I fix this? ubuntu@ip:~$ sudo /etc/init.d/apache2 stop * ...
0
votes
2answers
129 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
249 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
302 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 ...
0
votes
1answer
562 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 ...
1
vote
1answer
3k 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
379 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
93 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 ...
1
vote
0answers
319 views

System network buffers leaking/fully used, on Windows x64 with plenty of free RAM. How to diagnose and resolve?

This is related to this question and extends it. The symptoms are the same - 2012R2 x64 with 64GB RAM (21GB used), ping and nslookup both work fine, but IE won't open web pages, net use X: \\share ...
0
votes
1answer
186 views

Running a HTTPS SSE server over Kubernetes/Ingress and Google Cloud Platform

I'm running a SSE server on a VPS and it works perfectly, no problems at all, but due to scalability reasons I needed to move it to another server. I moved the server to Google Cloud Platform/Google ...
1
vote
1answer
140 views

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

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

Maximum number of sockets per server?

Pardon me if this question doesn't make sense! Is there any theoretical limit for the number of sockets that can be used simultaneously ? As per my understanding sockets are bound to ports and ports ...
2
votes
1answer
482 views

How to circumvent siege concurrency socket select timed out

Being trying to test load capacity of a web site. I am using an aws ubuntu xenial server t2.micro as test client and have SIEGE 3.0.8 and apache benchmark Version 2.3 while ab -c 100 -n 100000 url ...
0
votes
0answers
592 views

Nginx & Gunicorn: “*1 connect() to unix:/<path>/my.sock failed (111: Connection refused) while connecting to upstream”

I have followed this tutorial to set up a nginx server and gunicorn to run a Django 1.10 project on an Ubuntu 16.04 server. My nginx server seems to fail to connect to the gunicorn socket and returns ...
0
votes
1answer
79 views

What's the rtnetlink behavior if adding or removing ethernet to/from bridge?

While I am studying on RTNETLINK, I understand that the kernel will send RTM_ADDLINK or RTM_DELLINK if interface is added/removed at kernel space. However, I have a question regarding to the RTNETLINK ...
0
votes
0answers
136 views

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 ...