예제 #1
0
 internal void onConnResponse(Conn c, byte[] data)
 {
     if (CLOSE_WAIT_BYTES.SequenceEqual(data))
     {
         // server is ready for us to close (it ack'd our StartClose)
         // we can assume we will not receive any more messages over this channel
         // (but we can still write back responses)
         log(LogLevel.Info, string.Format("({0}) received CLOSE_WAIT from nsqd", c));
         c.Close();
     }
 }
예제 #2
0
 internal void onConnIOError(Conn c, Exception err)
 {
     c.Close();
 }