Closed
Description
Long story short
I get this error:
Error handling request
Traceback (most recent call last):
File "/home/paul/mpb-v2/env/lib/python3.4/site-packages/aiohttp/server.py", line 282, in start
self.transport.write_eof()
File "/usr/lib64/python3.4/asyncio/transports.py", line 111, in write_eof
raise NotImplementedError
NotImplementedError
It was mentioned before in #1537
Steps to reproduce
Thanks to @freekvw we have the code that reproduces the issue.
Error happens when you upload a file larger than 50KiB
from aiohttp import web
import ssl
import asyncio
@asyncio.coroutine
def handle(request):
text = """<html><body>
<form action="/upload" method="post" accept-charset="utf-8"
enctype="multipart/form-data">
<input name="file" type="file" value=""/><br />
<input type="submit" value="submit"/>
</form></body></html>"""
return web.Response(text=text, content_type='text/html')
@asyncio.coroutine
def handleUpload(request):
return web.json_response({})
app = web.Application()
app.router.add_get('/', handle)
app.router.add_post('/upload', handleUpload)
import proxybot_config as config
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.load_cert_chain(config.SSL_CERT, config.SSL_PKEY)
web.run_app(app,
host=config.LISTEN,
port=config.PORT,
ssl_context=context)
Your environment
OS: Fedora 23
Python 3.4.3
aiohttp 1.3.3