ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 30 forks source link

revproxy with content-type="multipart/x-mixed-replace" causes DoS and memleaks #88

Open johnlepikhin opened 8 years ago

johnlepikhin commented 8 years ago

My backend returns infinite content stream of such type:

HTTP/1.0 200 OK Server: Motion/3.2.12+git20140228 Connection: close Max-Age: 0 Expires: 0 Cache-Control: no-cache, private Pragma: no-cache Content-Type: multipart/x-mixed-replace; boundary=--BoundaryString

--BoundaryString Content-type: image/jpeg Content-Length: 58777 [... content ...] --BoundaryString Content-type: image/jpeg Content-Length: 58881 [... content ...] ....

Issues:

I use latest version from OPAM.

Drup commented 8 years ago

Could you please try with the cohttp version ? See https://github.com/ocsigen/ocsigenserver/pull/64

We are going to switch to that version soon(ish), so if it fixes it, all the better!