tonic icon indicating copy to clipboard operation
tonic copied to clipboard

Orderly Client Shutdown

Open theduke opened this issue 3 years ago • 1 comments

Bug Report

Version

0.7.1

Platform

Linux (probably not relevant)

Description

Not sure if this is a bug, a feature request, or just expected behaviour, but:

Currently, when a client is dropped, the server connection always ends with an error: unexpected end of file.

I assume that's because the client just drops the connection without properly closing it?

There doesn't seem to be any API to orderly terminate the connection.

This is mostly an annoyance because the errors pollute the server log.

theduke avatar Apr 26 '22 20:04 theduke

@seanmonstar does hyper/h2 send a goaway when its dropped? I feel like I've seen that code before but I would assume that would handle the more graceful aspect of this.

LucioFranco avatar Apr 29 '22 18:04 LucioFranco