Add timeout for jayson client requests #191
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#191
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
request() didn't hit the callback sometimes
fixes #19
fixes #188
Timeout is currently set to 1000 ms, please choose an optimal number
I still see one more problem.
The daemon when launched by app, takes around 10-12 secs to initialize completely. By then app timeouts and reports 'Connection Failure'. Can this time be increased or retried?
@krrishnarraj Thanks for fixing this. I think there is still a problem with detecting and handling unresponsive daemons, but this should address the tickets you mention.
The app will later poll that endpoint for up to about a minute, so 1 second as a timeout works fine for this even with a 10-12 second initialize time.
Please DM me as kauffj in our Slack if you'd like a tip for this PR.