1. U

    Socket hangs in recv randomly

    Hi, I have set up a network with a Linux host communicating over TCP/IP with a standard Windows computer. There is a strange behavior occurring sporadically and maybe you have an idea where this might come from. On Linux side there has been a standard TCP socket created which listens for an...
  2. M

    How to calculate TCP socket memory usage?

    Hi everyone, I am running a Debian GNU/Linux 9.5 (stretch) with kernel: 4.9.0-7-amd64. I am trying to figure out TCP sockets memory usage, but with my calculations I seem to be missing something. According to the following outputs /proc/net/sockstat: sockets: used 779 TCP: inuse 23 orphan 0...
  3. C

    Send screen via socket problem for systemd (I think) import socket import cv2 import struct import numpy as np from PIL import ImageGrab from time import sleep import pickle con = socket.socket(socket.AF_INET, socket.SOCK_STREAM) con.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) con.bind(("localhost",3344)) con.listen(1) while...