wqvbjhc / libuv_tcp Goto Github PK
View Code? Open in Web Editor NEWtcp server and client package using libuv
License: BSD 3-Clause "New" or "Revised" License
tcp server and client package using libuv
License: BSD 3-Clause "New" or "Revised" License
多个TCP链接不能共享一个uv_loop_t么?我自己的代码中多个tcp链路共享一个uv_loop_t,在运行一段时间后会出现一个或多个链路收不到事件的问题,请问您有啥建议么?
服务端:在一个线程里启动。
客户端:在一个线程里启动。
1,启动服务端,2,启动客户端,3,关闭服务端。 客户端挂掉。
在第一个close中 uv_mutex_lock(&mutex_clients_); 没有unlock ,关闭后,重新开启会出现问题
TCPClient中的AfterSend在发送失败时,将req放入writeparam_list_队列末尾。再回到send_inl函数的484行writep->buf_.len = write_circularbuf_.read(writep->buf_.base, writep->buf_truelen_); 时,若从writeparam_list_取出的writep再次从缓冲区中获取了一段数据,这样会不会造成之前发送失败时的数据被丢失了?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.