You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "srebhan (via GitHub)" <gi...@apache.org> on 2023/04/12 16:02:15 UTC
[GitHub] [arrow] srebhan commented on a diff in pull request #35051: GH-35042: [Go][FlightSQL driver] Add TLS configuration
srebhan commented on code in PR #35051:
URL: https://github.com/apache/arrow/pull/35051#discussion_r1164344490
##########
go/arrow/flight/flightsql/driver/config.go:
##########
@@ -19,9 +19,53 @@ import (
"crypto/tls"
"fmt"
"net/url"
+ "sync"
"time"
+
+ "github.com/google/uuid"
+)
+
+// TLS configuration registry
+var (
+ tlsConfigRegistry = map[string]*tls.Config{
+ "skip-verify": {InsecureSkipVerify: true},
+ }
+ tlsRegistryMutex sync.Mutex
Review Comment:
I can certainly do this, but I don't expect this to be in a hot-path. Remember, the mutex is locked if you register a config _and_ when you are calling `Open` (which in turn does the DSN parsing). Do you want me to use a `RWMute`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org