-
Notifications
You must be signed in to change notification settings - Fork 39
fix: races in incoming calls #318
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
44fbc47
fix: drop websocket with pings and new ping interval
konsalex 572b5da
revert: dedupe ttl
konsalex 7e5ac4c
fix: disable call button when receiving a call
konsalex a9dc000
fix: do not render call-center after 60s of an initiated call
konsalex 7673fa6
fix: add did not answer timeout when we are calling
konsalex 6378804
chore: bumb version
konsalex 27b4ac0
remove: dead code
konsalex 79302d9
review: feedback
konsalex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,7 +105,7 @@ class SocketService { | |
| }, | ||
| }); | ||
| } | ||
| }, 30_000); // Send ping every 30 seconds | ||
| }, 15_000); // Send ping every 15 seconds | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Verify backend websocket read deadline timeout is compatible with 15s heartbeat.
# Expected: Backend timeout should be at least 30-45 seconds to accommodate 15s heartbeat.
# Search for read deadline configuration in websocket handler
rg -n -C5 'SetReadDeadline|ReadDeadline|pongWait|readWait' backend/internal/handlers/websocketHandlers.go
# Also check for any timeout constants or configurations
rg -n 'time\.(Second|Minute|Duration).*[0-9]+' backend/internal/handlers/websocketHandlers.goRepository: gethopp/hopp Length of output: 932 Backend timeout already accommodates the 15s heartbeat
🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| private stopHeartbeat() { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description doesn't match implementation.
The task description claims "Build and run" but the
build-imagedependency on line 57 is commented out, so no build step actually executes.Either uncomment the build task or update the description to remove "Build and".
📝 Proposed fix options
Option 1: Update description to match current behavior
Option 2: Uncomment the build step to match description
📝 Committable suggestion
🤖 Prompt for AI Agents