-
Notifications
You must be signed in to change notification settings - Fork 3
Feat monitor fixes #49
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
Conversation
Also move the recv and send into the start method of |
as per task 2. we need a startup timeout for server connections. This is for the connection to establish and secure before it's fully created as a I'm not sure what to call this new option. What's a reasonable default here? Technically the connection is already created so we're just waiting for some negotiation. So 1-2 seconds is more than enough? |
No I already specced this out earlier in the configuration entropy issue.
Is it possible to do a constraint check if one were to create this? Also did you check if it's possible to mutate the idle timeout afterwards? |
Again defaults based what I talked about yesterday. 15 seconds for connect, 30 seconds for keep alive, 10 seconds for interval. Make this consistent everybody. Already in my PR. |
…ections that are awaiting the established and secured events [ci skip]
We allow for the connection start timeout to be longer than the max idle timeout of quiche. Keep in mind that the idle timeout will override the start timeout.
- moved `withMonitor` utility to `QUICConnection` - fixes to `withMonitor` utility - renamed `fun()` to `f()` - renamed `connectionConnectTime` to `connectTimeoutTime`
For reference
|
Everything is addressed now. Waiting for the CI to finish to merge. |
Can you tick off tasks and the final checklist? |
Description
This PR addresses some small issues in the
js-quic
code.As per discussion, the constraint on the connection start timeout should be removed. During usage we can set this to whatever without the context of the idle timeout being know. In that case it's very likely to throw an error. We'll allow any value to be valid with the caveat that a lower idle timeout will supersede the startup timeout.
During review we found that server type connections startup timeout defaults to infinity. creation here depends on establishment and secure events so it's possible for a server connection to be stuck in limbo if these events are never reached. A default start timeout should be applied here.
Issues Fixed
QUICConnection
#48Tasks
QUICConnection
#48Final checklist