Skip to content

Close the database before exiting#207

Merged
rubenv merged 1 commit intorubenv:masterfrom
blyoa:close-db
Jan 28, 2022
Merged

Close the database before exiting#207
rubenv merged 1 commit intorubenv:masterfrom
blyoa:close-db

Conversation

@blyoa
Copy link
Copy Markdown
Contributor

@blyoa blyoa commented Jan 27, 2022

The database are currently not closed, which may be logged as a failed connection. For example, MySQL logs as follows if db.Close was not called:

[Note] Aborted connection N to db: 'xxx' user: 'yyy' host: 'zzz' (Got an error reading communication packets)

@rubenv rubenv merged commit e560c4f into rubenv:master Jan 28, 2022
@rubenv
Copy link
Copy Markdown
Owner

rubenv commented Jan 28, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants