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
apps/run.go:350:12: SA1019: httputil.ClientConn has been deprecated since Go 1.0: Use Client or Transport in package net/http instead. (staticcheck)
var conn *httputil.ClientConn
^
apps/run.go:356:10: SA1019: httputil.NewClientConn has been deprecated since Go 1.0: Use the Client or Transport in package net/http instead. (staticcheck)
conn = httputil.NewClientConn(tlsConn, nil)
^
apps/run.go:358:10: SA1019: httputil.NewClientConn has been deprecated since Go 1.0: Use the Client or Transport in package net/http instead. (staticcheck)
conn = httputil.NewClientConn(dial, nil)
The text was updated successfully, but these errors were encountered:
I tried to find a solution but didn't succeed. There is no more HTTP client hijack in Go (golang/go#28030). Hence we need to figure out another way to make the underlying TCP connection bidirectional.
…ality
Fix#919
BREAKING CHANGE: Remove usage of deprecated httputil.ClientConn in favor of net/http.Client
per golang/go#28030. Since HTTP connection hijacking is no longer supported in modern Go,
implemented alternative approach for bidirectional TCP communication.
I've created a draft PR addressing the httputil.ClientConn deprecation.
I've tested this successfully locally and on staging through run bash is there any other one-off situation that I should test ?
Moreover I wasn't able to add unit tests yet due to issues importing the run service mock. I'll need some help with the mocking setup to complete the test coverage.
The text was updated successfully, but these errors were encountered: