Ticket #3958 enhancement closed duplicate

Opened 5 years ago

Last modified 5 years ago

EMFILE should be reported to protocol factories so that they can do something about it.

Reported by: glyph Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: itamar Branch:
Author: Launchpad Bug:

Description

#662 made it so that Twisted wouldn't crash any more when running out of file descriptors; we should add the ability to allow application code do something smart (like close a file descriptor) when this condition occurs.

(I feel like this should be a duplicate of something, but #662's closure message doesn't refer to any.)

Change History

1

Changed 5 years ago by itamar

I'm pretty sure #662 fixed one potential "crash" condition, but that there are others (some are DoS). For example, if you're not hitting the process FD limit but have hit select()'s limit.

2

Changed 5 years ago by itamar

  • cc itamar added

As far as this bug is concerned, EMFILE is one condition for notification, but hitting reactor limit should be another.

3

Changed 5 years ago by exarkun

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #2122.

4

Changed 3 years ago by <automation>

  • owner exarkun deleted
Note: See TracTickets for help on using tickets.