Skip to content

Error when serving static files with iocpreactor at high load #4667

@twisted-trac

Description

@twisted-trac
slenz's avatar slenz reported
Trac ID trac#4667
Type defect
Created 2010-10-04 08:50:43Z

I want to make django app run under twisted and make static files serviced by twisted. When load on server goes high I got unhandled exception in the iocpreactor/abstract.py module:

  File "D:\projects\daqserver\3rdparty\twisted\internet\iocpreactor\abstract.py", line 296, in write
    self.producer.pauseProducing()
exceptions.AttributeError: 'NoRangeStaticProducer' object has no attribute 'pauseProducing'

When I switch to select reactor problem goes away, but with selectreactor I have another problem with error 10055 (too many handles for select call).

I use twisted 10.1.

I attach part of logfile with error backtrace and simplified main.py file which start my application.

Attachments:

  • errror.log (2709 bytes) - added by slenz on 2010-10-04 08:51:16Z - Backtrace dump
  • twisted_django.py (2587 bytes) - added by slenz on 2010-10-04 08:51:42Z - My sample application
Searchable metadata
trac-id__4667 4667
type__defect defect
reporter__slenz slenz
priority__high high
milestone__ 
branch__ 
branch_author__ 
status__new new
resolution__None None
component__web web
keywords__iocpreactor_win32 iocpreactor win32
time__1286182243000000 1286182243000000
changetime__1306943702000000 1306943702000000
version__None None
owner__ 
cc__tds333

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions