FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
678 stars 135 forks source link

"Killed" error #47

Open riccardolunardi opened 1 year ago

riccardolunardi commented 1 year ago

Hello! I've been using the client for a while now and it works great! From time to time, if a script has been using the tls client for a while, the process will stop itself, giving the Killed error. I guess it has to do probably with the number of files opened, f.e. something in the memory has not been freed correctly. Do you guys have an idea on how to fix it? Or at least how to manage it by my side?

Thank you!

acheong08 commented 1 year ago

I've gotten that with the Go version of this library due to bad practices on my end.

Try only instantiating a single session and keep using the same one to make your requests. New sessions open a lot of files and reach the ulimit.

riccardolunardi commented 1 year ago

I actually already tried that, but it changes nothing. I would that guess the problem must be in the request part, not in the session one

acheong08 commented 1 year ago

It fixed my problems in Go. Must be an issue with the Python implementation then

FlorianREGAZ commented 1 year ago

I just updated to the newest go version. Maybe this fixes your issue. Lmk

riccardolunardi commented 1 year ago

I just updated to the newest go version. Maybe this fixes your issue. Lmk

Hey! Thanks for the update Unfortunatly the issue is still present, maybe it happened after more time then it usually did, but I couldn't really tell