Closed oxcafedead closed 3 months ago
I think I figured out what is the reason: python is single threaded, so even when you invoke run in "vim async" wrapper - it anyway holds the main thread. Invoking an HttpStop later waits until the request succeeds (aka queue gets the result), processed joins and only after then stop handler is invoked.
I will send a draft PR with my fix proposal
Steps to replicate:
Have a record with some non-existing hostname, e.g.
GET http://101.102.103.104:8089/v1/models
The request takes long, it's expected as it probably tries to ping some non-existing IP. (However, any sane timeout here would be an option...) But, if I try to
:HttpStop
a screen just hangs.After some really long time, it finally outputs an error in the status bar:
This freeze is inconvenient, so it's smth worth to fix.