scylladb / scylla-go-driver

Experimental, high performance Scylla Driver, University of Warsaw students' project
Apache License 2.0
151 stars 7 forks source link

transport: WrapConn goroutine leak #289

Open Kulezi opened 2 years ago

Kulezi commented 2 years ago

If c.init() fails, the connection will never be closed, leading to leaked routines running in both connReader and connWriter loops. https://github.com/scylladb/scylla-go-driver/blob/88fc8ef65496a8d2ed514fdf5501016663c08635/transport/conn.go#L497-L504