Opened 4 years ago

Closed 4 years ago

#32240 closed Cleanup/optimization (fixed)

ConnectionAbortedError should be treated as a broken pipe error in the development server

Reported by: Petter Strandmark Owned by: Petter Strandmark
Component: HTTP handling Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

People using Windows have been complaining about very long stack traces in the development server for a long time:

These happen under normal interaction with the development server using Chrome.

I have fixed one issue in CPython in wsgiref, but I belive that we should also fix is_broken_pipe_error in django/core/servers/basehttp.py

Change History (6)

comment:1 by Petter Strandmark, 4 years ago

Has patch: set

comment:2 by Carlton Gibson, 4 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Hi Petter. Thanks for the report. Happy to have a look at this yes!

comment:3 by Mariusz Felisiak, 4 years ago

Needs tests: set

It's related to many reports, e.g. #29872, #30503, #30932, #30909, or #31091.

comment:4 by Petter Strandmark, 4 years ago

Needs tests: unset

comment:5 by Mariusz Felisiak, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In 772eca0:

Fixed #32240 -- Made runserver suppress ConnectionAbortedError/ConnectionResetError errors.

See https://bugs.python.org/issue27682 and
https://github.com/python/cpython/pull/9713

Note: See TracTickets for help on using tickets.
Back to Top