Closed mvdwetering closed 6 months ago
The update introduces a new feature where the server now automatically disconnects a client if there's no activity for 40 seconds. This is achieved through a modification in the server's handling method, which now includes a mechanism to catch and respond to timeout scenarios, ensuring clients are disconnected gracefully after the specified period of inactivity.
File | Change Summary |
---|---|
ynca/.../server.py |
Added a 40-second timeout for inactivity and handling for TimeoutError . |
🐰✨
In the land of code, where the bits do roam,
A rabbit hopped in, making a server its home.
"No more lingering," it said with a cheer,
"After forty seconds, you must disappear."
With a try and a catch, it set the rule,
Making the server both wise and cool.
🌟🐾
Summary by CodeRabbit