Open yuelwish opened 7 months ago
看着是网络不稳定或者其他 case 导致了底层的 conn 实例被 close 导致的。我通过配置一个中间代理模拟网络很糟糕的情况可以复现你的问题。
我看了下代码这个缺相关的检查 我觉得可以参考 mysql 这样的健壮 driver 做类似的调整
https://github.com/go-sql-driver/mysql/blob/master/connection.go#L372
@huskar-t assign 给我试试?
@yinheli greet!you can create a pull request to the 3.0 branch and i will review it
环境: github.com/taosdata/driver-go/v3 v3.5.0 Ubuntu 22.04 LTS tdengine/tdengine:3.1.0.0
docker启动
复现场景: 当我td所在的服务器,我go build 过程中卡死之后, 就存在一定几率这样空指针。
初始化代码: