Skip to content

Commit

Permalink
http: enable EV_READ
Browse files Browse the repository at this point in the history
Fixes: libevent#666
Fixes: 7ed02ac ("http: fix detecting EOF without write")
  • Loading branch information
azat committed Dec 23, 2019
1 parent ea12428 commit 7d2e2a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,9 @@ evhttp_read_body(struct evhttp_connection *evcon, struct evhttp_request *req)
evhttp_connection_done(evcon);
return;
}

/* Read more! */
bufferevent_enable(evcon->bufev, EV_READ);
}

#define get_deferred_queue(evcon) \
Expand Down

2 comments on commit 7d2e2a8

@freemandealer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azat hi! There has been a while since this fix is posted but it seems not merged into the upstream repo yet. I am wondering what is going on with this fix? Thanks.

@azat
Copy link
Owner Author

@azat azat commented on 7d2e2a8 Apr 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@freemandealer hi, I want to write a test for this problem (libevent#666 (comment)), but never managed to do so, maybe you can submit a test? (into https://github.com/libevent/libevent/blob/master/test/regress_http.c)

Please sign in to comment.