Closed blokhin closed 7 years ago
Cf. also #1
Could you explain what your code is doing ? what type of data do you return ? Could you provide a small code allowing me to reproduce the problem ?
The line you mention is build by line 111 at base.py and it's transformed at line 334 in mainloop.c Finally the line is send back to the client on line 509 at mainloop.c.
@william-os4y thanks for posting. I'll try to isolate the code and share it here.
I cannot reproduce the problem. This is maybe linked to the bad memory allocation in fapws. On which OS did you compile it ? I'm running OpenBSD 6.1.
This happened at my development environment in Windows 8.1 / Cygwin, may be that's the problem?
Could you retry your tests with the last changes proposed by vincent delft ? On my Openbsd machine those changes work perfectly. Indeed, now we have a better management of the memory zone allocated to the response_header. This should improve, maybe solve, your problem. Thanks to let us know.
The last version of fapws3, event backend is poll. Sometimes, very unexpectedly, instead of the usual 302 respond like this:
I observe this:
Note the first four symbols are spoiled. Probably, it might be related to the use of threading module in my server, but this is just a guess.