Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Question about socket.recv() returning empty

Greetings,
So I wrote a simple irc bot tho other day. Its working for the most part, besides one thing. Where I have response = socket.recv(1024), it is pulling the correct information from the irc server. Until randomly it starts returning empty or None. This repeats over and over, as it is in a loop, until restarted. It doesn't correct itself after the first error.
I went back and checked the string it should have received. It was just a normal message with no funny business.
This first time this occurred, it lagged my machine down pretty bad despite having a lot of free resources after and no process instances running. Rebooted.
Any ideas?


Figured it out. For those stumbling in, the server requires you to respond to its alive request. I had a formatting error in my send.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Neo_KaiserAug 10, 2025 02:36 PM 0 110 Aug 10, 2025 02:36 PM
Last Post: Neo_Kaiser
[Python] by ghostdeveliteJul 18, 2021 04:21 AM 1 140 Jul 18, 2021 04:21 AM
Last Post: 3phase
[.NET] by xbeargryllsDec 23, 2020 05:39 PM 5 331 Dec 23, 2020 05:39 PM
Last Post: #Kat