EventHeaderTags tags = new EventHeaderTags();
tags.token = auth.token;
ev.setHash(sid);
ev = wrapEvent(ev);
Buffer buf = EventHelper.encodeEvent(tags, ev);
request.setHeader(HttpHeaders.Names.CONTENT_LENGTH,
"" + buf.readableBytes());
request.setContent(ChannelBuffers.wrappedBuffer(buf.getRawBuffer(),
buf.getReadIndex(), buf.readableBytes()));
HttpClientHandler h = client.execute(request, cb);
workingHttpClientHandlers.add(h);
cb.httpHandler = h;
}
catch (HttpClientException e)