SegRequest req = new SegRequest(bs);
String content = req.getContent();
SegResult sr = getSeg(content);
try {
MsgPack pack = new MsgPack(CmdID.SEG_RESPONSE, sr);
out.write(pack.getBytes());
out.flush();
} catch (IOException e) {
logger.error("segment request", e);
close();
}