Repository navigation
calibre: rework connection setup - #13704
Merged
Merged
Conversation
Clear socket & poller field after `stop` so we get a clear segfault when attempting to keep using the queue (including another call to `stop`), instead of undefined behavior.
Faster and with better UI:
- roughly halve a successful connection setup
- drop manual & temporary TCP connection before the real ZMQ one:
- it slows down the total connection time
- it's actually counted by calibre as a failed connection attempt:
after 5 consecutive failures from the same IP, calibre ignore
further connections, with no feedback to the user, except an
error trace, until the wireless server is restarted
- avoid unconditional 1s delay before checking for authentication failure
- "searching" & "connecting" (cancellable) dialogs
- stop connection on quit / restart
Frenzie
approved these changes
May 1, 2025
pazos
reviewed
May 1, 2025
pazos
approved these changes
May 1, 2025
benoit-pierre
added a commit
to benoit-pierre/koreader
that referenced
this pull request
May 16, 2025
Regression from koreader#13704.
0xstillb
pushed a commit
to 0xstillb/koreader-thai
that referenced
this pull request
May 9, 2026
Regression from koreader#13704.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Faster and with better UI:
NOTE: I actually kept the temporary TCP connection check, but after a failed connection attempt (timeout getting replies from the server), to get a better error message (failure in hostname resolution, connection refused, etc…)
Before:
calibre_before.mp4
After:
calibre_after.mp4
This change is