File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ bytesize = "1.0"
24
24
crates-io = { path = " src/crates-io" , version = " 0.25" }
25
25
crossbeam-utils = " 0.6"
26
26
crypto-hash = " 0.3.1"
27
- curl = { version = " 0.4.19 " , features = [' http2' ] }
28
- curl-sys = " 0.4.15 "
27
+ curl = { version = " 0.4.21 " , features = [' http2' ] }
28
+ curl-sys = " 0.4.18 "
29
29
env_logger = " 0.6.0"
30
30
pretty_env_logger = { version = " 0.3" , optional = true }
31
31
failure = " 0.1.5"
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ fn maybe_spurious(err: &Error) -> bool {
50
50
|| curl_err. is_couldnt_resolve_host ( )
51
51
|| curl_err. is_operation_timedout ( )
52
52
|| curl_err. is_recv_error ( )
53
+ || curl_err. is_http2_stream_error ( )
53
54
{
54
55
return true ;
55
56
}
@@ -125,3 +126,10 @@ fn with_retry_finds_nested_spurious_errors() {
125
126
let result = with_retry ( & config, || results. pop ( ) . unwrap ( ) ) ;
126
127
assert_eq ! ( result. unwrap( ) , ( ) )
127
128
}
129
+
130
+ #[ test]
131
+ fn curle_http2_stream_is_spurious ( ) {
132
+ let code = curl_sys:: CURLE_HTTP2_STREAM ;
133
+ let err = curl:: Error :: new ( code) ;
134
+ assert ! ( maybe_spurious( & err. into( ) ) ) ;
135
+ }
You can’t perform that action at this time.
0 commit comments