You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I didn't find that at code and also at description, trying to understand that fact if I have to close the connection after I use jira.NewClient when using jira.BasicAuthTransport to establish the connection, could you please point me where the connection is closed, or should I take care that myself or? thanks!
Also should I every time create a client to get data from Jira, or I can utilize same client then only then take care to close? If for example I need to walk thru dozens of Jira tickets, should I every time open new client here? thanks
Additional info: I could find some fingerprints regarding the default timeouts and found this:
`
var DefaultTransport RoundTripper = &Transport
{Proxy: ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
}).DialContext,
`
does it mean if for example I have a couple of goroutines, can they be using that window? also if by default there is 30 sec timeout and keepalive 30 sec too, meaning ever without goroutine I can use that time to connect to Jira without creating new client again?Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I didn't find that at code and also at description, trying to understand that fact if I have to close the connection after I use jira.NewClient when using jira.BasicAuthTransport to establish the connection, could you please point me where the connection is closed, or should I take care that myself or? thanks!
Also should I every time create a client to get data from Jira, or I can utilize same client then only then take care to close? If for example I need to walk thru dozens of Jira tickets, should I every time open new client here? thanks
Additional info: I could find some fingerprints regarding the default timeouts and found this:
`
var DefaultTransport RoundTripper = &Transport
{Proxy: ProxyFromEnvironment,
DialContext: (&net.Dialer{
}).DialContext,
`
does it mean if for example I have a couple of goroutines, can they be using that window? also if by default there is 30 sec timeout and keepalive 30 sec too, meaning ever without goroutine I can use that time to connect to Jira without creating new client again?Thanks
Beta Was this translation helpful? Give feedback.
All reactions