MahjongRepository / tenhou-python-bot

Bot for tenhou.net riichi mahjong server written in Python
MIT License
201 stars 52 forks source link

[Question] Why and when socket connections was automatically? #164

Closed nara-ryoya closed 1 year ago

nara-ryoya commented 2 years ago

Question

I use this repository in our Mahjong AI Project and plays mahjong game (game_type is 9, hanchan ari-ari), but sometimes game was ended unsuccessfully with the log "We are getting empty messages from socket. Probably socket connection was closed". I'm not sure why and when this happened?

nara-ryoya commented 2 years ago

@Nihisil

Nihisil commented 2 years ago

It is hard to say. Usually, I don't have such problems too often. They happened before, like once in a few dozen games.

I thought it was an issue with tenhou.net servers and just ignored this error.

But it could be something wrong with the bot code as well.