joyent / libuv

Go to
https://github.com/libuv/libuv
3.27k stars 653 forks source link

handle->write_queue_size >= req->queued_bytes #1583

Closed zhs077 closed 9 years ago

zhs077 commented 10 years ago

发送50KB就会出现这种错误???

JacksonTian commented 10 years ago

Maybe you should give detail, such as stack.

saghul commented 10 years ago

Also, please use English so we can help you better.

xzzh999 commented 10 years ago

I had the same problem before(我也曾出现过这个错误), but when you send data in the loop thread, that would not happen again(但是只要你保证发送的调用和主循环在同一个线程中,就不会有这个问题). Also you should always use the stable version(同时你也应该尽量使用stable版本). Otherwise its could cause some strange crash or bad stack errors(否则会导致一些奇怪的崩溃问题或者堆栈错误问题).

Look the follow link or search reference links like it:(查看下面的链接或者搜索相关的链接) https://github.com/joyent/libuv/issues/1409

saghul commented 9 years ago

Sorry, there is not enough data to debug this issue. If you think you founf one, please open a new issue with a libuv test case showing it so we can debug it. Also, #1409 was not a libuv issue since it's not thread safe to write to a stream from a different thread.