edgebitio / enclaver

Open source toolkit created to enable easy adoption of software enclaves
https://edgebit.io/enclaver
Apache License 2.0
124 stars 12 forks source link

Wait for ingress traffic before shutting down #169

Closed crawford closed 10 months ago

crawford commented 10 months ago

Prior to this change, if the application within the enclave exited shortly after sending a particularly slow (e.g. large) response, the ingress proxy tasks would be aborted before the transfer could complete, causing the response to be prematurely terminated. Instead of aborting the tasks, send a shutdown signal and wait for their completion.

This fixes https://github.com/edgebitio/enclaver/issues/167.