Skip to content

Proxying with puma seems to be unreliable even with non-chunked encoding #7

@pedrocr

Description

@pedrocr

While creating a testcase for bug #6 I ended up finding an unreliable result with proxying non-chunked content. Here's the testcase:

https://github.com/pedrocr/camerasink/blob/b01aac64e8aaef96f8527f6e29768cc1f5f6199b/testcases/puma_unreliable_proxying.ru

Again this is runnable as "rackup puma_unreliable_proxying.ru".

Then asking for the same resource multiple times from the original server works fine:

$ curl http://localhost:9000
Hello!
pedrocr@wintermute:~$ curl http://localhost:9000
Hello!
pedrocr@wintermute:~$ curl http://localhost:9000
Hello!
pedrocr@wintermute:~$ curl http://localhost:9000
Hello!
pedrocr@wintermute:~$ curl http://localhost:9000
Hello!

But doing the same from the proxy server sometimes returns an empty result:

pedrocr@wintermute:~$ curl http://localhost:9292
Hello!
pedrocr@wintermute:~$ curl http://localhost:9292
pedrocr@wintermute:~$ curl http://localhost:9292
Hello!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions