浮萍晓生的开发日志

记录学习的旅程,把握可预见的未来

导航

libuv 错误号UV_ECANCELED 的处理

Posted on 2014-01-02 17:13  浮萍晓生  阅读(1346)  评论(0编辑  收藏  举报

这个地方有好多的不明白,也没仔细的看懂代码,希望有牛人指点。

先记录几个issue 

1、

after_write recv many(>10000) ECANCELED

in my write_cb i get status,that is uv_err_name eq ECALCELED,it is UV_ECALCELED?

can i close the (uv_write_t*)req->handle?

 

I'm not 100% sure what you mean. If you have e.g. a uv_tcp_t or uv_pipe_t handle and your uv_write_t callback is called with status=UV_ECANCELED, that means the handle is closing.