Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

vansangpfiev
Copy link
Contributor

@vansangpfiev vansangpfiev commented Sep 27, 2024

Describe Your Changes

When the network is down, our process is hang for 10 seconds to wait for HTTP response. The httplib does not support connection timeout in this case yet, so we need to work around.

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@dan-menlo
Copy link
Contributor

Thanks @hiento09 for flagging this up!

@vansangpfiev vansangpfiev marked this pull request as ready for review September 30, 2024 01:28
Copy link
Contributor

@namchuai namchuai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ lgtm. Having another thread is ok, but quite expensive. I think we can try with libcurl in the future.

@vansangpfiev vansangpfiev merged commit 1069b89 into dev Sep 30, 2024
4 checks passed
@vansangpfiev vansangpfiev deleted the fix/conn-hang branch September 30, 2024 02:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: check new update hang if network is down

4 participants