davidqhr / elixir-captcha

This is a Elixir lib for generating captcha. It drawing captcha image with C code. No dependencies.
MIT License
36 stars 20 forks source link

allow customize Port.open receive timeout #2

Closed zven21 closed 6 years ago

zven21 commented 6 years ago

I use elixir-captcha deploy at Heroku, the default receive time 1_000 always timed out, I hope to add a custom timeout setting. 😄

here is: https://elixir-mipha.herokuapp.com/join

zven21 commented 6 years ago

ping @davidqhr

davidqhr commented 6 years ago

Thanks for your PR. The old timeout is 1 sec. I notice that you have changed the value to 50. Since it already has a way to config timeout, should we keep the old default value for compatibility?

zven21 commented 6 years ago

@davidqhr okay, i finished.