dashbitco / nimble_pool

A tiny resource-pool implementation for Elixir
347 stars 20 forks source link

Update HTTP1 Pool readme example #4

Closed sneako closed 4 years ago

sneako commented 4 years ago

If the server responds with a "connection: close" header, Mint will automatically close the connection, but the return value will still be {:ok, conn, response}. At this point, if we try to call controlling_process/2 on a closed connection, it will fail.

sneako commented 4 years ago

Updated! Sorry for my sloppy initial attempt, I'm not used to writing so much code that I can't easily execute :)

josevalim commented 4 years ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: