shotover / shotover-proxy

L7 data-layer proxy
https://docs.shotover.io
Apache License 2.0
83 stars 16 forks source link

server.rs - move response handling into .process() #1727

Closed rukai closed 3 weeks ago

rukai commented 3 weeks ago

This PR:

There are a few renames:

The main point of the PR is to move sending of responses into send_receive_chain. To achieve this the CloseReason enum is introduced, currently only the existence of the CloseReason is meaningful so there is only one variant. The existence of the CloseReason indicates to run_loop whether to terminate the loop or not. CloseReason will be extended in #1722 to have unique handling for different close reasons.

codspeed-hq[bot] commented 3 weeks ago

CodSpeed Performance Report

Merging #1727 will not alter performance

Comparing rukai:refactor_server (d4a2d67) with main (76c7845)

Summary

✅ 39 untouched benchmarks