[Haskell-cafe] enumerators: exception that can't be catched

Yuras Shumovich shumovichy at gmail.com
Tue Aug 27 16:28:11 CEST 2013


Hello,

I'm debugging an issue in "websockets" package,
https://github.com/jaspervdj/websockets/issues/42

I'm not familiar with "enumerator" package (websockets are based on it),
so I'm looking for help. The exception is throws inside "enumSocket"
enumerator using
"throwError" ( http://hackage.haskell.org/packages/archive/network-enumerator/0.1.5/doc/html/src/Network-Socket-Enumerator.html#enumSocket ), but I can't catch it with "catchError". It is propagated to "run" function:
   <interactive>: recv: resource vanished (Connection reset by peer)

The question is: how is it possible? could it be a bug in "enumerator"
package?

Thanks,
Yuras





More information about the Haskell-Cafe mailing list