private class SpdyReceiveListener implements ChannelListener<SpdyChannel> {
@Override
public void handleEvent(SpdyChannel channel) {
try {
SpdyStreamSourceChannel result = channel.receive();
if (result instanceof SpdySynReplyStreamSourceChannel) {
SpdyClientExchange request = currentExchanges.remove(((SpdySynReplyStreamSourceChannel) result).getStreamId());
if (request == null) {
//server side initiated stream, we can't deal with that at the moment
//just fail