mpenet / jet

[not maintained, use at own risk] Jetty9 ring server adapter with WebSocket support via core.async and Jetty9 based HTTP & WebSocket clients (jvm based, no cljs)
http://mpenet.github.io/jet/
167 stars 19 forks source link

Treat async responses the same #19

Closed wyegelwel closed 9 years ago

wyegelwel commented 9 years ago

Set the timeout to 0 and add a listener when we first make the async context. This way, we capture the two different times we make a async context and treat them the same.

mpenet commented 9 years ago

Hi,

Your patch wouldn't add listeners on both channels when async response + async body are used together (ex . The call to addlistener must be done outside of the with s.isAsyncStarted block). I ll merge it as is and modify this. Thanks!

mpenet commented 9 years ago

it's available as of 0.6.2

wyegelwel commented 9 years ago

Thanks Max!