cjoudrey / gluahttp

gluahttp: an http module for gopher-lua
MIT License
58 stars 23 forks source link

Contex BUG! #23

Closed soulbird closed 5 years ago

soulbird commented 5 years ago

VM blocked on Recv even after cancelling context. So the function of doRequest may should add follow code: ctx := L.Context() if ctx != nil { req = req.WithContext(ctx) }

erikdubbelboer commented 5 years ago

Thanks for the suggestion. I have just pushed a commit to implement this.