Fedihosting-Foundation / plemmy

A Python package for accessing the LemmyHttp API
Apache License 2.0
45 stars 15 forks source link

add timeout function to requests #8

Closed socphoenix closed 1 year ago

socphoenix commented 1 year ago

Creating a pull request to add timeout functionality to plemmy requests. On slow servers the requests can hang indefinitely requiring a stop and restart of the script. Set the timeout to 30 seconds. Tested against https://lemmy.perthchat.org.

tjkessler commented 1 year ago

Nice addition, 30 seconds seems like an appropriate timeout. I'll merge and update to 0.2.5!