Sanitize H2_Send_Frame error handling.
The only way H2_Send_Frame can fail is if the TCP connection is dead, so reach out and set the session errored and be done with it, rather than pass an inconvenient error status down through the callers. While here use writev(2) instead of two write(2) calls.
Showing
Please register or sign in to comment