nakagami / firebirdsql

Firebird RDBMS sql driver for Go (golang)
MIT License
220 stars 60 forks source link

SetMaxIdleConns(nIdle) & SetMaxOpenConns(nOpen) nIdle >0 && nOpen => nIdle seem to be not working #137

Closed andrewkip closed 2 years ago

andrewkip commented 2 years ago

Hello!
There is no effect if I try limit MaxOpenConns and MaxIdleConns - open connections are not limited. But if I call SetMaxIdleConns(0) there is no open and idle connections.

nakagami commented 2 years ago

We manage the number of connections around here, but I believe it is a driver-independent process. https://github.com/golang/go/blob/master/src/database/sql/sql.go#L958

andrewkip commented 2 years ago

Sorry it was my fault! Everything works fine. Sorry again.