-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(tcpreuse): add options for sharing TCP listeners amongst TCP, WS and WSS transports #2984
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
Changes from 15 commits
6281130
2ae20f4
05ee445
3457a7b
ac8b478
6d5fa53
0115a62
cdbf16c
7f4f875
00c9403
2c053d8
7e34d05
e465b29
677222a
8c334af
b686b80
a28a244
a39490f
76f560b
c314a2a
56dabd4
9ebfc89
a722a7c
85be1f5
18af914
f9f39b7
9ca4ae7
3d26583
3487369
74e9c05
fd53643
ccd1609
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -643,3 +643,11 @@ func WithFxOption(opts ...fx.Option) Option { | |
return nil | ||
} | ||
} | ||
|
||
// ShareTCPListener shares the same listen address between TCP and Websocket transports. | ||
func ShareTCPListener() Option { | ||
return func(cfg *Config) error { | ||
cfg.ShareTCPListener = true | ||
return nil | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.