Hi,

I'm getting a crash on post buffering mode, this used to work, so I'm
not sure it's
related to some version o uwsgi, or if I am doing something wrong.

basically my code calls uwsgi_request_body_read()
to do the multipart parsing, after I know the body part offsets I call
uwsgi_request_body_seek(0)
after that the user will likely want to save one or all the parts to a file
so another seek is set to point to the beggining of the
part and
uwsgi_request_body_read() is called.
Now the function returns fine, as it has read data, but
accessing the buffer for debugging or for calling
memcpy crashes as it had already freed that buffer.

I know this is the behavior of when not using post-buffering
so I just fill a buffer to enable the same behavior.

What could I be doing wrong?

the code:
https://github.com/cutelyst/cutelyst/blob/master/uwsgiEngine/bodyuwsgi.cpp#L58

thanks

-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to