Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Socket server problem
#1
Hi all,

I've got a socket server with many clients and it all used to work fine. Just recently this receiving line:
RECEIVED_MESSAGE = CLIENT.recv(32768)
for many clients started to produce this:
b''
(If I print the RECEIVED_MESSAGE it prints this: b'')
It is apparently empty received data and it being in a while True loop it keeps producing this endlessly and very fast. I would really appreciate any thoughts on this as I've no clue what's happening. It doesn't do it in every case but for many clients (randomly).

Thanks,
Gabor
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  TLS socket communication use ECDSA -secp384r1 certificate/key problem. water 2 561 Apr-15-2025, 07:15 PM
Last Post: water
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 11,142 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Asyncio | Websockets - general problem starting the server dreamer 5 7,709 Oct-26-2022, 11:55 AM
Last Post: dreamer
Bug Problem connecting TLS client written in C++ and Twisted server gpropf 0 2,197 Jun-12-2022, 05:57 PM
Last Post: gpropf
  Simple TCP Client and TCP Server Problem Vapulabis 5 6,189 Jul-12-2020, 05:09 PM
Last Post: ndc85430
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 3,905 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  Writing socket server NewPy_thwan_Programmer 0 2,437 Feb-23-2020, 03:58 PM
Last Post: NewPy_thwan_Programmer
  socket loop problem monamour 9 9,360 Nov-28-2019, 12:04 PM
Last Post: buran
  problem in socket Mamad 2 3,279 Nov-10-2019, 11:44 AM
Last Post: j.crater
  Server and Network (socket) [WinError 10053] Timxxx 1 6,495 Aug-23-2019, 10:03 AM
Last Post: iMuny

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020