- Dec 13, 2023
-
-
Niklas Adolfsson authored
-
- Dec 11, 2023
-
-
Niklas Adolfsson authored
* feat: add explicit API `set_tcp_nodelay` * fix build * replace messy fn new with builder * update changelog * Update client/http-client/src/transport.rs * fix bad fmt
-
- Dec 08, 2023
-
-
Niklas Adolfsson authored
* chore: release v0.21 * fix my bad spelling * more spelling * Update CHANGELOG.md Co-authored-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: James Wilson <[email protected]> * Update CHANGELOG.md * address grumbles * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Alexandru Vasile <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
Niklas Adolfsson authored
* refactor(client): unify ws ping/pong api * fix nits * fix build * fix wasm build * refactor again * Update core/Cargo.toml * Update core/src/client/async_client/mod.rs * Update core/src/client/async_client/mod.rs * fix build again * Update core/src/client/async_client/mod.rs * fix grumbles * fix fmt nit * emit error when ping/pong terminates conn
-
dependabot[bot] authored
* chore(deps): update tokio-rustls requirement from 0.24 to 0.25 Updates the requirements on [tokio-rustls](https://github.com/rustls/tokio-rustls) to permit the latest version. - [Commits](https://github.com/rustls/tokio-rustls/commits ) --- updated-dependencies: - dependency-name: tokio-rustls dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update native-certs and webpki-roots * cargo fmt * fix build * Update client/transport/src/ws/mod.rs --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Dec 07, 2023
-
-
dependabot[bot] authored
Updates the requirements on [gloo-net](https://github.com/rustwasm/gloo) to permit the latest version. - [Release notes](https://github.com/rustwasm/gloo/releases) - [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md) - [Commits](https://github.com/rustwasm/gloo/compare/0.4.0...0.5.0 ) --- updated-dependencies: - dependency-name: gloo-net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Dec 06, 2023
-
-
Niklas Adolfsson authored
* split client and server error * cargo fmt * remove old code * fix tests * cargo fmt * fix rustdoc links * make clippy happy * Update server/src/future.rs * Update client/http-client/src/client.rs * Update client/http-client/src/client.rs * Update core/src/client/async_client/helpers.rs * Update core/src/client/async_client/helpers.rs * Update core/src/client/async_client/mod.rs * Update core/src/client/async_client/mod.rs * fix more todos * unused dep: soketto * remove unused error variant * Update core/src/lib.rs * cargo fmt * fix grumbles: move client error to own mod * simplify imports * Update core/src/client/error.rs
-
- Dec 05, 2023
-
-
Niklas Adolfsson authored
* fix(host filtering): allow same host with ports The refactoring moved to another library where an `Authority` with the "same host name" but a different port was overwritten and this commit fixes that several ports with the same host name can be configured and work properly. * Update server/src/middleware/host_filter.rs
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* refactor(ws client): tokio:{AsyncRead, AsyncWrite] Simplify the code by implementing `tokio::io::{AsyncWrite, AsyncRead}` for the EitherStream. However, we still need the compat because soketto requires futures::io::{AsyncRead, AsyncWrite} * cargo fmt
-
- Dec 04, 2023
-
-
venugopv authored
-
- Dec 01, 2023
-
-
Niklas Adolfsson authored
* feat(server): make it possible to disable WS ping * cleanup * refactor PingConfig * refactor PingConfig * fix build * Update server/src/server.rs * Update server/src/transport/ws.rs * Update server/src/server.rs
-
- Nov 30, 2023
-
-
Niklas Adolfsson authored
* feat(client): add `disconnect_reason` API This commit adds an API to get the error reason why the backend was disconnected. Close #1196 * switch to RwLock * fix wasm build * address grumbles * Update client/ws-client/src/tests.rs
-
Niklas Adolfsson authored
* refactor: cleanup logging * fix nits
-
- Nov 24, 2023
-
-
Niklas Adolfsson authored
* refactor: RpcServiceT make it possible !BoxFuture * cleanup and no boxing in the EitherLayer * add missing files * remove more BoxFuture * fix clippy * cleanup * grumbles: add Clone bound * grumbles: remove needless bounds RpcLogger * grumbles: simplify response futures * grumbles: fix faulty comment * fix more grumbles: simplify trait bounds * Revert "fix more grumbles: simplify trait bounds" This reverts commit 2e7c94f3.
-
- Nov 22, 2023
-
-
Niklas Adolfsson authored
* fix: unsubscription test * fix nits * address grumbles * fix nit
-
- Nov 21, 2023
-
-
Leonardo L authored
* refactor(jsonrpsee-client-transport): update and turn `WsTransportClientBuilder` generic - fix(docs): typo on `WsTransportClientBuilder` doc on `Receiver` reference. - refactor: add initial fn signatures for `build_with_stream`, `try_connect_over_tcp`, and `try_connect`. - refactor: expose `EitherStream` visibility to public. - refactor: make `Sender` and `Receiver` generic over T, a data stream. - refactor: make `TransportSenderT` and `TransportReceiverT` implementations over generic `Sender` and `Receiver`, bound to `AsyncRead`, `AsyncRead`, `MaybeSend` and `'static`. - refactor: turn old `try_connect` TCP steps into `try_connect_over_tcp`. - feat: implement `build_with_stream` and `try_connect` to handle and handle the handshake for a generic data stream `T`. - feat: add new `Redirected` error variant to `WsHandshakeError`, as it should be handled by the client when using a generic data stream `T`. - TODO(@oleonardolima): Add new tests that uses a different data stream. * refactor(jsonrpsee-ws-client): add new fns to `WsClientBuilder` - feat: add new `WsClientBuilder::build_with_transport` that builds and returns a `WsClient` with the given `Sender` and `Receiver`. - feat: add new `WsClientBuilder::build_with_stream` that uses the new `WsTransportClientBuilder::build_with_stream`, building and returning the `WsClient` with the given `data_stream` as transport layer. - refactor: update the `WsClientBuilder::build` to use the new `build_with_transport`, it helps not having duplicated code. * refactor: re-export `EitherStream` & sort current list * test: add integration tests and helper fns - add new helper fns to spawn a socks5 server, using `fast-socks5` - add new helper enum for `DataStream` that acts as a wrapper to `Socks5Stream<T>`, similar to what a client would need to do. - impl AsyncRead + AsyncWrite for the helper `DataStream` enum, to make it compatible between futures::io and tokio::io. - add new tests that connects over a socks5 proxy, and use the new `WsClientBuilder::default()::build_with_stream(...) fn. * address review suggestions --------- Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Nov 17, 2023
-
-
Niklas Adolfsson authored
This reverts commit c811810b.
-
- Nov 16, 2023
-
-
Niklas Adolfsson authored
feat: jsonrpsee as `service` and `low-level API for more fine-grained API to disconnect peers etc` (#1224) * refactor new jsonrpc middleware * add jsonrpsee specific service trait * use tower::ServiceBuilder for composable middleware * revert changelog * fix nits * types: impl Clone * clarify examples * Update server/src/middleware/mod.rs * Update server/src/transport/http.rs * remove some boiler plate * add back logging * remove needless Arc * remove clone bounds for Middleware * add wrapper for tower::ServiceBuilder * fix docs * add modify request example * add rate limit example * fix some nits in rate limiting middleware example * Meta -> Context * restruct middleware module * fix broken links * jsonrpsee service PoC * add example how to disconnect misbehaving peers * cleanup example * cleanup * complete example with http * rename some stuff * remove needless deps * Update server/src/server.rs * revert unintentional change * add hyper low-level example * address grumbles * remove useless example * improve jsonrpsee as service example * address grumbles * Update examples/examples/jsonrpsee_as_service.rs * fix bad docs * fix grumbles: no leaky `Settings` * cleanup * unify server_cfg * grumbles: revert pub items * cleanup * Update server/src/server.rs * simplify doc links * fix `RpcServerBuilder::option_layer` Close https://github.com/paritytech/jsonrpsee/issues/1231 * remove TransportProtocol from RpcServiceT * fix test build * Update examples/examples/jsonrpsee_as_service.rs Co-authored-by: Alexandru Vasile <[email protected]> * grumbles: remove a few clones in examples * Update examples/examples/jsonrpsee_as_service.rs * remove clone bounds for TowerServiceBuilder * remove missing clone impl * remove more needless clone --------- Co-authored-by: Alexandru Vasile <[email protected]>
-
dependabot[bot] authored
Updates the requirements on [http](https://github.com/hyperium/http) to permit the latest version. - [Release notes](https://github.com/hyperium/http/releases) - [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md) - [Commits](https://github.com/hyperium/http/compare/v0.2.9...v1.0.0 ) --- updated-dependencies: - dependency-name: http dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Nov 09, 2023
-
-
Niklas Adolfsson authored
* fix `RpcServerBuilder::option_layer` Close https://github.com/paritytech/jsonrpsee/issues/1231 * Update server/src/middleware/rpc/layers.rs * fix grumbles * address grumbles * remove needless dep pin-project * fix import * revert external either type
-
- Nov 08, 2023
-
-
Yuri Volkov authored
The first attept to use a workflow to protect GitLab CI from untrusted contributors failed, because GitHub doesn't pass secrets to workflows for PRs that originate from forks. This uses a different approach: instead of triggerring gitspiegel API directly from the workflow, we're just spawning an empty workflow with a specific path, and gitspiegel listens for `workflow_run` event to start mirroring. The idea is the same: for the first-time contributors, running workflows would require manual aciton and that would block mirroring. But this time, we don't need any secrets to make it work.
-
- Nov 06, 2023
-
-
Niklas Adolfsson authored
-
Yuri Volkov authored
Using a workflow to trigger mirroring instead of a webhook allows us to reuse "Approving workflow runs from public forks" GitHub feature to somewhat protect us from malicious PRs
-
- Nov 03, 2023
-
-
Niklas Adolfsson authored
* refactor new jsonrpc middleware * add jsonrpsee specific service trait * use tower::ServiceBuilder for composable middleware * revert changelog * fix nits * types: impl Clone * clarify examples * Update server/src/middleware/mod.rs * Update server/src/transport/http.rs * remove some boiler plate * add back logging * remove needless Arc * remove clone bounds for Middleware * add wrapper for tower::ServiceBuilder * fix docs * add modify request example * add rate limit example * fix some nits in rate limiting middleware example * Meta -> Context * restruct middleware module * fix broken links * grumbles: remove `Context` * fix tests * Update examples/examples/rpc_middleware_modify_request.rs Co-authored-by: James Wilson <[email protected]> * fix grumbles * grumbles: adjust docs for method response * grumbles: MethodKind::Unknown -> NotFound * Update examples/examples/http_middleware.rs * fix some nits in examples --------- Co-authored-by: James Wilson <[email protected]>
-
- Oct 31, 2023
-
-
dependabot[bot] authored
Updates the requirements on [async-lock](https://github.com/smol-rs/async-lock) to permit the latest version. - [Release notes](https://github.com/smol-rs/async-lock/releases) - [Changelog](https://github.com/smol-rs/async-lock/blob/master/CHANGELOG.md) - [Commits](https://github.com/smol-rs/async-lock/compare/v2.4.0...v3.0.0 ) --- updated-dependencies: - dependency-name: async-lock dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Oct 23, 2023
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.0 to 2.7.1. - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/swatinem/rust-cache/compare/v2.7.0...v2.7.1 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Oct 19, 2023
-
-
Niklas Adolfsson authored
* graceful shutdown: distinguish between stopped and conn closed * grumbles: ws_stream fuse
-
Niklas Adolfsson authored
* graceful shutdown: terminate on error * fix nits * adress grumbles
-
- Oct 18, 2023
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.0...v4.1.1 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Oct 16, 2023
-
-
Niklas Adolfsson authored
* server: graceful shutdown check `Incoming::Closed` * Update server/src/transport/ws.rs
-
- Oct 11, 2023
-
-
Niklas Adolfsson authored
-
- Oct 04, 2023
-
-
dependabot[bot] authored
Updates the requirements on [proc-macro-crate](https://github.com/bkchr/proc-macro-crate) to permit the latest version. - [Release notes](https://github.com/bkchr/proc-macro-crate/releases) - [Commits](https://github.com/bkchr/proc-macro-crate/compare/v1.2.0...v2.0.0 ) --- updated-dependencies: - dependency-name: proc-macro-crate dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Oct 02, 2023
-
-
dependabot[bot] authored
Updates the requirements on [console-subscriber](https://github.com/tokio-rs/console) to permit the latest version. - [Release notes](https://github.com/tokio-rs/console/releases) - [Commits](https://github.com/tokio-rs/console/compare/console-subscriber-v0.1.8...console-subscriber-v0.2.0 ) --- updated-dependencies: - dependency-name: console-subscriber dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Sep 28, 2023
-
-
Niklas Adolfsson authored
This was intended to propogate the backpressure all the way down the underlying socket but it's weird and doesn't work very well. For subscriptions the backpressure will be handled by implementation itself and just rely on that now.
-
- Sep 27, 2023
-
-
dependabot[bot] authored
Updates the requirements on [pprof](https://github.com/tikv/pprof-rs) to permit the latest version. - [Changelog](https://github.com/tikv/pprof-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/tikv/pprof-rs/commits ) --- updated-dependencies: - dependency-name: pprof dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Sep 25, 2023
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.0.0...v4.1.0 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Sep 15, 2023
-
-
Niklas Adolfsson authored
* fix: remove needless clone in ws background task * fix(server): fix leak in FuturesUnordered The tokio::spawn handles were never removed from `FutursUnordered` which this commit fixes. Reduces the memory usage signficantly but still slightly worse than v0.16.x * Update server/src/transport/ws.rs * cargo fmt * wording
-
Niklas Adolfsson authored
-
- Sep 14, 2023
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.6.2 to 2.7.0. - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/swatinem/rust-cache/compare/v2.6.2...v2.7.0 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-