• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 6070331226
61%

Build:
DEFAULT BRANCH: development
Ran 04 Sep 2023 10:39AM UTC
Jobs 1
Files 704
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2023 07:17AM UTC coverage: 75.11% (-0.04%) from 75.152%
6070331226

push

github

web-flow
fix(comms): greatly reduce timeouts for first byte and noise handshake (#5728)

Description
---
Reduce time to first byte timeout from 45s to 3s
Remove noise protocol timeout
Add timeout for receiving noise handshake replies

Motivation and Context
---
Time to first byte should be short to prevent a malicious connection
from holding many open for long periods.

The "global" noise handshake timeout was excessively long (40s), this is
replaced with a timeout on the receive calls inside
the NoiseSocket. This means that the responder in the XX handshake will
wait for up to 6s (2 x receives) while the initiator will wait for 3s (1
receive). This should be more robust and reflect that the wait time for
a responder is generally larger than for the initiator.

How Has This Been Tested?
---
Existing tests, manually

What process can a PR reviewer use to test or verify this change?
---
Connections work!
<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->

27 of 27 new or added lines in 5 files covered. (100.0%)

71165 of 94748 relevant lines covered (75.11%)

190769.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6070331226.1 04 Sep 2023 10:39AM UTC 0
75.11
GitHub Action Run
Source Files on build 6070331226
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6070331226
  • 47a31961 on github
  • Prev Build on development (#6066120729)
  • Next Build on development (#6075558612)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc