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

Always got connection timeout on MacOS #19

Open
8528868jeffrey opened this issue Jun 17, 2020 · 7 comments
Open

Always got connection timeout on MacOS #19

8528868jeffrey opened this issue Jun 17, 2020 · 7 comments

Comments

@8528868jeffrey
Copy link

Works well on linux, but when I run my code from my macos laptop. I encountered this.

@thda
Copy link
Owner

thda commented Jun 17, 2020

Thanks for reporting.
I have a mac laptop hanging around, I will test and let you know.

@8528868jeffrey
Copy link
Author

8528868jeffrey commented Jun 17, 2020

Thanks for reporting.
I have a mac laptop hanging around, I will test and let you know.

This issue seems related to Go Mod. I'm new to Golang. If I make a new proejct that doesn't have go.mod file, then connection timeout issue doesn't occur

@thda
Copy link
Owner

thda commented Jun 17, 2020

I’ll try to update dependencies then. Might help. Thanks for the investigation

@8528868jeffrey
Copy link
Author

The error message I got:
netlib: Timeout reached, yet the cancel was not acknowledged

@thda
Copy link
Owner

thda commented Jul 2, 2020

I've updated dependencies. Can you please check again? If it doesn't work I'll try to make my old macbook boot.

@8528868jeffrey
Copy link
Author

Thanks for your update. I finally have time to work on this. This time, timeout issue disappeared at sql.Open() but happpend at Query():
61: func (user *Login) Process(query string) error {
62: rows, err := user.Connection.Query(query)
63: if err != nil {
=> 64: msg, ok := err.(tds.SybError)
65: if ok == true {
66: user.Messages = append(user.Messages, msg)
67: } else {
68: return err
69: }
(dlv) print err
error(*errors.errorString) *{
s: "netlib: Timeout reached, yet the cancel was not acknowledged",}
(dlv) exit

@limberger
Copy link

@8528868jeffrey did you resolve this problem?

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

3 participants