http-rs / http-rs/async-h1

Connections being reset with valid requests from Python client

Open
#144 3 comments 0 reactions 1 assignee Claimed by @jbr View on GitHub
Dominant language
Rust
Stars
166
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I'm using [schemathesis](https://github.com/schemathesis/schemathesis) (just the worst name) to run OpenAPI tests against my Tide server.

A number of these tests outright fail with connection resets by the server and [obtuse errors on the server side](https://gist.github.com/rtyler/74ba5cb97fe5a46a41521ce4d167ce0f).

Easy reproduction for exactly what I'm doing would be:

* Download [this openapi.yaml](https://github.com/APIs-guru/openapi-directory/blob/master/APIs/amazonaws.com/s3/2006-03-01/openapi.yaml)
* `pip install schemathesis`
* `RUST_LOG=debug tide-serve -b localhost:8000`
* `~/.local/bin/schemathesis run ./openapi.yaml -O PutObject --base-url=http://localhost:8000/ --show-errors-tracebacks`

Observe numerous client-side failures such as:

```
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
```

Running a dummy server with `python -m SimpleHTTPServer` doesn't result in these connection resets however.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.