Issue #696 resolved

windows - 10055 - No buffer space available

Anonymous created an issue

If I want to serve a static file via serve_file or with standard static file config, that is large (tested with 160mb) . The following error occurs under windows (XP/Vista):

{{{ HTTP/1.1 500 Internal Server Error Content-Length: 435

Traceback (most recent call last): File "D:\semantics\VLS\env/lib/pure/cherrypy\wsgiserver.py", line 579, in communicate req.respond() File "D:\semantics\VLS\env/lib/pure/cherrypy\wsgiserver.py", line 348, in respond self.write(chunk) File "D:\semantics\VLS\env/lib/pure/cherrypy\wsgiserver.py", line 404, in write self.sendall(chunk) File "<string>", line 1, in sendall error: (10055, 'No buffer space available') HTTP/1.1 500 Internal Server Error Content-Length: 435 }}}

Files of that size are served under Unix with no problems. I have tried to use the multipart-streaming stuff, seen in serve_file but that seems not the right direction. Don't know whether thats a cherryppy bug.

dirk

Reported by d.rothe@semantics.de

Comments (7)

  1. Anonymous

    I have now switched of sessions for the specific handlers - after understanding how to apply the cherrypy config system per controller/handler (routes dispatcher). That workarounds the problem atm.

    But that means, that I am not able to use some sort of authentification for these download handlers (under windows).

  2. Anonymous

    Hello.

    I get the same error described when I try to serve a file bigger 200MB. To fix the problem I tried the first suggestion by setting cherrypy.response.stream = True, just before the serve_file function is called. But this alone didn't help. Now I don't understand the second part: How can I make sure that no tool or code collapses the body? I tried "response.collapse_body = False" but this didn't help.

  3. Log in to comment