diff options
author | 2023-01-08 11:43:08 +0000 | |
---|---|---|
committer | 2023-01-08 11:43:08 +0000 | |
commit | 1bda6a2002b18d3732b24d2496b88e137a32968b (patch) | |
tree | 8bfb104d9e7e7035f8ccfb355078466096456ab8 /internal/api/client/streaming/streaming_test.go | |
parent | [docs] Rewrite sponsorship + funding section, add NLnet (#1305) (diff) | |
download | gotosocial-1bda6a2002b18d3732b24d2496b88e137a32968b.tar.xz |
[bugfix] return early in websocket upgrade handler (#1315)
* launch websocket streaming in goroutine to allow upgrade handler to return
* don't send any message on ping, improved close check on failed read
* use context to signal wsconn close, ensure canceled in read goroutine
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/api/client/streaming/streaming_test.go')
-rw-r--r-- | internal/api/client/streaming/streaming_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/streaming/streaming_test.go b/internal/api/client/streaming/streaming_test.go index 22b077464..f713607bb 100644 --- a/internal/api/client/streaming/streaming_test.go +++ b/internal/api/client/streaming/streaming_test.go @@ -99,7 +99,7 @@ func (suite *StreamingTestSuite) SetupTest() { suite.federator = testrig.NewTestFederator(suite.db, testrig.NewTestTransportController(testrig.NewMockHTTPClient(nil, "../../../../testrig/media"), suite.db, fedWorker), suite.storage, suite.mediaManager, fedWorker) suite.emailSender = testrig.NewEmailSender("../../../../web/template/", nil) suite.processor = testrig.NewTestProcessor(suite.db, suite.storage, suite.federator, suite.emailSender, suite.mediaManager, clientWorker, fedWorker) - suite.streamingModule = streaming.NewWithTickDuration(suite.processor, 1) + suite.streamingModule = streaming.New(suite.processor, 1, 4096) suite.NoError(suite.processor.Start()) } |