Skip to content

Commit c5a7e66

Browse files
committed
Merge branch 'fuzz'
2 parents 47a1241 + 7226391 commit c5a7e66

File tree

10 files changed

+203
-36
lines changed

10 files changed

+203
-36
lines changed

Cargo.lock

Lines changed: 159 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ default = ["max"]
3333
## Everything, all at once.
3434
##
3535
## As fast as possible, tracing, with TUI progress, progress line rendering with auto-configuration, all transports based on their most mature implementation (HTTP), all `ein` tools, CLI colors and local-time support, JSON output, regex support for rev-specs.
36+
## Can be amended with the `http-client-curl-rustls` feature to avoid `openssl` as backend.
3637
max = ["max-control", "fast", "gitoxide-core-blocking-client", "http-client-curl"]
3738

3839
## Like `max`, but only Rust is allowed.
@@ -150,6 +151,8 @@ gitoxide-core-tools-archive = ["gitoxide-core/archive"]
150151
gitoxide-core-blocking-client = ["gitoxide-core/blocking-client"]
151152
## Support synchronous 'http' and 'https' transports (e.g. for clone, fetch and push) using **curl**.
152153
http-client-curl = ["gix/blocking-http-transport-curl"]
154+
## Implies `http-client-curl` and configures `curl` to use the `rust-tls` backend.
155+
http-client-curl-rustls = ["gix/blocking-http-transport-curl-rustls"]
153156
## Support synchronous 'http' and 'https' transports (e.g. for clone, fetch and push) using **reqwest**.
154157
http-client-reqwest = ["gix/blocking-http-transport-reqwest-rust-tls"]
155158

gix-transport/src/client/async_io/request.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ impl<'a> RequestWriter<'a> {
8383
///
8484
/// Doing so will also write the message type this instance was initialized with.
8585
pub async fn into_read(mut self) -> std::io::Result<Box<dyn ExtendedBufRead + Unpin + 'a>> {
86+
use futures_lite::AsyncWriteExt;
8687
self.write_message(self.on_into_read).await?;
88+
self.writer.inner_mut().flush().await?;
8789
Ok(self.reader)
8890
}
8991

gix-transport/src/client/blocking_io/request.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::io;
2+
use std::io::Write;
23

34
use crate::client::{ExtendedBufRead, MessageKind, WriteMode};
45

@@ -60,6 +61,7 @@ impl<'a> RequestWriter<'a> {
6061
/// Doing so will also write the message type this instance was initialized with.
6162
pub fn into_read(mut self) -> std::io::Result<Box<dyn ExtendedBufRead + Unpin + 'a>> {
6263
self.write_message(self.on_into_read)?;
64+
self.writer.inner_mut().flush()?;
6365
Ok(self.reader)
6466
}
6567

65.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)