sniperHW / chuck

high performance and easily use asynchronous network library for C/Lua
52 stars 32 forks source link

httpclient 如何实现 超时回应? #21

Open zzh442856860 opened 7 years ago

zzh442856860 commented 7 years ago

httpclient 如何实现 超时回应? 请求http时,怎么加上一个timeout超时?

sniperHW commented 7 years ago

为每个请求加个timer,到期返回超时,收到响应取消timer