richardhundt / luv

libuv bindings for Lua
Apache License 2.0
118 stars 19 forks source link

I find it tricky to cleanly destroy a lua state if there are active requests. #32

Open yihuang opened 7 years ago

yihuang commented 7 years ago

I find it tricky to cleanly destroy a lua state if there are active requests, because loop_gc try to cancel active requests which will callback into lua again, but some userdata already been gc-ed, and cause a lot of headache. What's your opinion on this?

richardhundt commented 7 years ago

Hi, I don't have enough information to help you. Where does loop_gc come from? I've searched my code, libuv and zmq sources and I can't find it.