Opened 7 years ago

Closed 7 years ago

#3958 enhancement closed duplicate (duplicate)

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:


#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 (4)

comment:1 Changed 7 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.

comment:2 Changed 7 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.

comment:3 Changed 7 years ago by exarkun

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #2122.

comment:4 Changed 6 years ago by <automation>

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