You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme suggest we need to reconnect every time. Does the library reconnect to the database on each builder call? If so, is it recommended to put a builder for every thread?
关于这个项目的 todo list 里的这一条,我认为还是很有必要的。
我引用这个项目,将股票期货报价数据写入到 InfluxDB 里面去,每一个报价都 Post 一次,Post 里面又包含了 sock 的创建连接等,显然太占用资源了。
我将 server_info struct 里面添加了 sock addr 两个变量,
添加了 DoConnect DoWritev DoRecv 三个方法,替代你的项目里面的 http_request 内的创建 socket, connect sock 以及writev 和 recv 。
唯一有一个缺点就是无法在应该关闭 sock 重连的时候(远端关闭,send recv的其他异常错误)而关闭 sock 并重新创建并连接
The text was updated successfully, but these errors were encountered: