-
Notifications
You must be signed in to change notification settings - Fork 495
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
Not implemented panic in go 1.16 #639
Comments
It also happened to me in Go 1.16, but when reverting to Go 1.15.6 the issue did not occur.
Thank you @liorblob mentioning that it was related to 1.16, it helped me to prevent the issue in production. |
You can test fixed version with this go.mod modification (add row "replace"):
|
I had a similar issue when calling Close:
|
I've been running this PR #642 in non-production environments for a week now and haven't found any issues so far. Not sure if the PR fixes the issue correctly or if something is missing. A review from the authors/maintainers would be great. To switch to this fix, add |
I've reported this in github.com/jmoiron/sqlx. I've included a reproducible scenario. When I build an application with Go 1.13, all works fine, but same app, built using 1.16.2 breaks. |
Hi Has there been any movement on this? My team is hitting this problem now too. |
@dimdin , @kardianos - do either of you have review/merge privileges to this repo? CC: @denisenkom |
|
Just tested this with golang 1.16 and the fix suggested by @uvw works. I can see the concern that it must be backward compatible, but AFAIK this is not a problem as older go versions did not call Hope someone with merge rights have time to look at the PR soon so we don't have to force a replace in go.mod to the specific commit in the PR. |
PR is merged, please check if there are no issues at this point |
A patch has been released to fix panics on Go 1.16. denisenkom/go-mssqldb#639 This was imported but not released in go-gorm/sqlserver#27. Pulling in the prerelease commit so that we can release a patch to our customers.
A patch has been released to fix panics on Go 1.16. denisenkom/go-mssqldb#639 This was imported but not released in go-gorm/sqlserver#27. Pulling in the prerelease commit so that we can release a patch to our customers.
FWIW, the new release is working for me. |
Looks like this is fixed and a release has been issued. Closing. |
Got the following error when I tried to use
Ping
after upgrading go to 1.16:Looking at the 1.16 release notes, this change might be the cause:
https://golang.org/doc/go1.16#crypto/tls
A default write deadline is now set in Conn.Close before sending the "close notify" alert, in order to prevent blocking indefinitely.
go-mssqldb/net.go
Line 61 in 045585d
The text was updated successfully, but these errors were encountered: