don't copy when forward

This commit is contained in:
云风
2013-06-26 18:13:02 +08:00
parent f01680d9a5
commit 4878488ee3

View File

@@ -259,7 +259,7 @@ forward(struct skynet_context * context, struct socket *s, struct socket_pool *p
if (s->status == STATUS_HALFCLOSE) {
free(buffer);
} else {
skynet_send(context, 0, s->source, PTYPE_CLIENT, 0, buffer, r + 4);
skynet_send(context, 0, s->source, PTYPE_CLIENT | PTYPE_TAG_DONTCOPY, 0, buffer, r + 4);
}
}