diff options
| author | Lu <[email protected]> | 2018-07-23 10:17:50 +0800 |
|---|---|---|
| committer | Lu <[email protected]> | 2018-07-23 10:17:50 +0800 |
| commit | 9a04b68360ee1fb6b88c3a9bd151f679fe951e46 (patch) | |
| tree | 9633861fb6e964e5443933cd9665cfaf080a762c | |
| parent | 0f197cd29e6a1d9b9be7323d0105f9a3100922c3 (diff) | |
Close #12
| -rw-r--r-- | src/http1.cc | 3 | ||||
| -rw-r--r-- | src/proxy.cc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/http1.cc b/src/http1.cc index b51635c..4df293f 100644 --- a/src/http1.cc +++ b/src/http1.cc @@ -1062,7 +1062,8 @@ __forward: evbuffer_add_buffer(upstream_evbuf, response.StolenEvBuf().release()); } - if (response.SectionState(response.kSectionMessage) == response.kStateComplete) + if (response.SectionState(response.kSectionMessage) == response.kStateComplete || + response.SectionState(response.kSectionMessage) == response.kStateStolen) { drop_first_session(); } diff --git a/src/proxy.cc b/src/proxy.cc index 3afc6e7..7664a11 100644 --- a/src/proxy.cc +++ b/src/proxy.cc @@ -282,7 +282,7 @@ void ForgeSocketAdapter::HandlerForgeSocketFd(int fd_downstream, int fd_upstream bool is_http = false; bool is_ssl = false; - if (dest_port == 80) + if (dest_port == 80 || dest_port == 8080 || dest_port == 8081) { is_http = true; is_ssl = false; |
