Skip to content

Be more robust about exceptions#10

Open
LaserEyess wants to merge 1 commit into
mainfrom
exceptions
Open

Be more robust about exceptions#10
LaserEyess wants to merge 1 commit into
mainfrom
exceptions

Conversation

@LaserEyess

Copy link
Copy Markdown
Owner

Also suggested by the clanker. Catch more possible exceptions in writer.write() and writer.drain(). If there is an unknown exception that shouldn't occur, flag it and abort. Defense in depth dictates we should assume the worst. This is not a DoS because, well, we're not serving anything. Nothing on the host is compromised.

Also add an abort in case peername is empty. That should never happen, but if it does, something has gone horribly wrong.

Also suggested by the clanker. Catch more possible exceptions in
writer.write() and writer.drain(). If there is an unknown exception that
shouldn't occur, flag it and abort. Defense in depth dictates we should
assume the worst. This is not a DoS because, well, we're not serving
anything. Nothing on the host is compromised.

Also add an abort in case `peername` is empty. That should never happen,
but if it does, something has gone horribly wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant