Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local socket breaks are not detected #113

Open
9nut opened this issue Aug 10, 2015 · 0 comments
Open

local socket breaks are not detected #113

9nut opened this issue Aug 10, 2015 · 0 comments

Comments

@9nut
Copy link

9nut commented Aug 10, 2015

this is an FYI. i tried to investigate it and couldn't find anything obvious; i think this is subtle problem with default Dialer for "unix" sockets. i don't have time to look into it further but thought someone here might want to know about it.

i used godrv for a project which has since been changed to use go-mysql-driver. there was an issue where go routines that access the database in a long running application would get stuck after a few days. the application uses one database connection, which is a unix domain socket. the application is a data logger that gets data from several systems once a day. usually by the third day the stuck condition would appear without any error or warning messages whatsoever. after switching to go-mysql-driver (i.e. switching the package import and the DSN format) i noticed that it is detecting a broken pipe condition during some writes, from which it recovers. I suspect the path that handles the default dialer for unix sockets in mymysql isn't doing the right thing.

sorry for the sketchy problem reporting.

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

No branches or pull requests

1 participant