benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Prevent sending unexpected messages in client message queue #652

Closed kpribylov closed 4 years ago

kpribylov commented 4 years ago

Added a temporarily proxy process to handle all checkout related messages towards client side Fixes #651

If there is an idea on how to cover this scenario with help of UT, I'll do it ASAP

benoitc commented 4 years ago

sorry i missed the part about testing. i don’t have much idea at the moment. Maybe we can replace the do_checkout function to send an intermediary message before returning the result? let’s discuss that in a separate issue though