Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix headers/body order (#55)" #74

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Revert "fix headers/body order (#55)" #74

merged 1 commit into from
Jul 3, 2023

Conversation

js-everts
Copy link
Contributor

This reverts #55.

The pull request above introduced sane-ordering to the terminal output by prioritizing headers first and then the response body. But unfortunately it introduces a deadlock in cases where we have no headers to print.

Simple commands like curlie or curlie -h will hang.

Sometimes it also causes the program to deadlock even when headers are present. It probably has something to do with the code failing to properly detect where the headers' section ends. But I'm having difficulty reliably reproducing this case.

Fixes #72
Fixes #73

This reverts commit e63e657.

The commit above introduced sane-ordering to the terminal output by
prioritizing headers first and then the response body. But unfortunately
it introduces a deadlock in cases where we have no headers to print.

Commands like `curlie` or `curlie -h` will hang.

Sometimes it also causes the program to deadlock even when headers are
present. It probably has something to do with the code failing to
properly detect where the headers' section ends. But this is difficult
to reproduce.
@rs rs merged commit c589190 into rs:master Jul 3, 2023
@js-everts js-everts deleted the revert branch July 3, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: close of closed channel [Windows] fatal error: all goroutines are asleep - deadlock!
2 participants