rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
30 stars 7 forks source link

Add overlappingRequests flag to "open" #329

Closed arv closed 3 years ago

arv commented 3 years ago

When overlappingRequests is true it is in an error if the pull/push endpoint uses HTTP1/x. It needs to use H2 or H3.

fetch/rust_client.rs is not really working with this change since it uses hyper 0.13 which does not support HTTP/2. There is a newer version of hyper that supports h2 but hyper runs on top of tokio and we use std async. We have a compat file but I could not get it to work correctly. I need to spend more time on this if we ever want to support non web.

I tested the browser fetch path manually.

https://www.notion.so/Push-pull-scheduling-268fd33bbcf14c5cbced55a249f409aa#c959432fc61a4c4bb152aa61e3856f44

Towards https://github.com/rocicorp/replicache-sdk-js/issues/294

arv commented 3 years ago

I'll do orderedCookie in a new PR