ostinelli/misultin — Issue #86: Handling streaming connection from inside a gen_server
Author: francois2metz
Created: 2011-12-12 11:32:15+00:00
State: open

Hi,

We are trying to move from yaws to misultin on U.C.Engine (https://github.com/AF83/ucengine).

We have a streaming API (aka EventSource or Server-Sent Events). The current logic is currently inside a gen_server. It makes easier to handle all cases and the connection close (https://github.com/AF83/ucengine/blob/487cef0a3ccdbfae369938ec3ec36d296ac6c686/ucengine/src/controllers/async/uce_async_stream.erl)

With misultin I don't know how to achieve the same result. The request Pid is trashed as soon as the gen_server is started. Therefore the connection is closed.

Do you have something similar to streamcontent_from_pid from yaws?