remote call will raise an error when the harbor disconnected

This commit is contained in:
Cloud Wu
2014-03-28 15:08:20 +08:00
parent aa85b2bd55
commit f772fc4ce8

View File

@@ -401,6 +401,8 @@ _remote_send_handle(struct harbor *h, uint32_t source, uint32_t destination, int
cookie.session = (uint32_t)session;
_send_remote(context, fd, msg,sz,&cookie);
} else {
// throw an error return to source
skynet_send(context, destination, source, PTYPE_RESERVED_ERROR, session, NULL, 0);
skynet_error(context, "Drop message to harbor %d from %x to %x (session = %d, msgsz = %d)",harbor_id, source, destination,session,(int)sz);
}
return 0;