You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I figure out, that hackney starts tracking process which calls hackney:request even if stream_to parameter is passed.
I expected that when stream_to passed hackney would track this process.
Maybe it should be one more parameter to set the owner process or just use stream_to for this.
What do you think?
If you agree, I can provide a pull request with changes for this.
Have nice day.
The text was updated successfully, but these errors were encountered:
I have a case when a process should send a request to API when it terminates, I wanted to do it in an async manner, so I use async and stream_to options to handle result in another process. But the process which called request terminating, hackney cancel the request before stream_to process gets a response. I am sure that it is a bit strange and rare situation. I think it would be cool to cover it somehow - add the ability to fully change owner process or at least add a notice in the documentation, that in case the owner process is terminated hackney cancels the request.
Hello.
I figure out, that hackney starts tracking process which calls
hackney:request
even ifstream_to
parameter is passed.I expected that when
stream_to
passed hackney would track this process.Maybe it should be one more parameter to set the owner process or just use
stream_to
for this.What do you think?
If you agree, I can provide a pull request with changes for this.
Have nice day.
The text was updated successfully, but these errors were encountered: