tds icon indicating copy to clipboard operation
tds copied to clipboard

Always got connection timeout on MacOS

Open 8528868jeffrey opened this issue 5 years ago • 7 comments

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

8528868jeffrey avatar Jun 17 '20 13:06 8528868jeffrey

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

thda avatar Jun 17 '20 14:06 thda

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

8528868jeffrey avatar Jun 17 '20 16:06 8528868jeffrey

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

thda avatar Jun 17 '20 19:06 thda

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

8528868jeffrey avatar Jun 22 '20 07:06 8528868jeffrey

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

thda avatar Jul 02 '20 05:07 thda

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

8528868jeffrey avatar Sep 10 '20 03:09 8528868jeffrey

@8528868jeffrey did you resolve this problem?

limberger avatar Dec 07 '23 20:12 limberger