Opened 10 years ago

Closed 6 years ago

#3229 defect closed duplicate (duplicate)

Mention Deferred chaining limit in howto/defer.html

Reported by: Scramblejams Owned by: ivank
Priority: normal Milestone:
Component: core Keywords: documentation
Cc: Thijs Triemstra Branch:
Author:

Description

Chaining more than ~250 deferreds results in a recursion error. See attached code for demonstration of the problem, and the following email for a description of why it occurs:

http://twistedmatrix.com/pipermail/twisted-python/2008-May/017681.html

(Note: You may have to play with NO_OF_DEFERREDS in the sample code. On my system, Python 2.5/Twisted 8.0.1, I needed to use 332. You may need more or fewer.)

In the meantime, or if this gets classified as wontfix, this issue should be covered in the deferred documentation, preferably here:

http://twistedmatrix.com/projects/core/documentation/howto/defer.html#auto11

Attachments (1)

foo.py (631 bytes) - added by Scramblejams 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by Scramblejams

Attachment: foo.py added

comment:1 Changed 10 years ago by Scramblejams

Summary: Upgrade Deferred to support a callback chain of arbitrary lengthFix Deferred to support a callback chain of arbitrary length

comment:2 Changed 9 years ago by ivank

Keywords: documentation added
Summary: Fix Deferred to support a callback chain of arbitrary lengthMention Deferred chaining limit in howto/defer.html

This is a duplicate of #411, but this ticket mentions the documentation problem, so I'm turning this into a documentation-only bug.

comment:3 Changed 8 years ago by Glyph

Owner: changed from Glyph to ivank

comment:4 in reply to:  2 Changed 6 years ago by Thijs Triemstra

Cc: Thijs Triemstra added

Replying to ivank:

This is a duplicate of #411, but this ticket mentions the documentation problem, so I'm turning this into a documentation-only bug.

#411 is resolved and also fixed the problem, when increasing NO_OF_DEFERREDS to 1000 in the attached foo.py. Can this be closed?

comment:5 Changed 6 years ago by Jean-Paul Calderone

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.