Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): connection aborted logging #5595

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Dec 10, 2023

When the client terminates the connection one of two cases seem to happen server-side:

  1. "connection aborted request" or
  2. Error write EPIPE

Error write EPIPE implies writing to a closed connection, which was already indicated via the connection aborted error. As far as I can tell, throwing an error in the service method, prevents nestjs from trying to write to the socket. That, combined with ignoring (not logging errors) for connection aborted requests seem to be the behavior we are looking for.

@jrasm91 jrasm91 requested a review from mertalev December 10, 2023 01:34
@alextran1502 alextran1502 merged commit b7b4483 into main Dec 10, 2023
17 checks passed
@alextran1502 alextran1502 deleted the fix/connection-aborted-logging branch December 10, 2023 02:46
jonhnet pushed a commit to jonhnet/immich that referenced this pull request Dec 15, 2023
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.

3 participants