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
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 4,514 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Asyncio | Websockets - general problem starting the server dreamer 5 3,252 Oct-26-2022, 11:55 AM
Last Post: dreamer
Bug Problem connecting TLS client written in C++ and Twisted server gpropf 0 1,391 Jun-12-2022, 05:57 PM
Last Post: gpropf
  Simple TCP Client and TCP Server Problem Vapulabis 5 4,397 Jul-12-2020, 05:09 PM
Last Post: ndc85430
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 2,965 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  Writing socket server NewPy_thwan_Programmer 0 1,930 Feb-23-2020, 03:58 PM
Last Post: NewPy_thwan_Programmer
  socket loop problem monamour 9 6,670 Nov-28-2019, 12:04 PM
Last Post: buran
  problem in socket Mamad 2 2,360 Nov-10-2019, 11:44 AM
Last Post: j.crater
  Server and Network (socket) [WinError 10053] Timxxx 1 4,586 Aug-23-2019, 10:03 AM
Last Post: iMuny
  Server and Network (socket) [WinError 10053] SheeppOSU 2 22,308 Apr-13-2019, 09:23 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

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