New process port exchange changed. READY message type introduced.

Application process start request DATA message from router to master.
Master notifies router via NEW_PORT message after worker process become ready.
This commit is contained in:
Max Romanov
2017-07-12 20:32:16 +03:00
parent c38bcb7d70
commit b0c1e740cf
23 changed files with 1234 additions and 393 deletions

View File

@@ -917,7 +917,7 @@ nxt_mp_retain(nxt_mp_t *mp, size_t size)
}
void
uint32_t
nxt_mp_release(nxt_mp_t *mp, void *p)
{
nxt_mp_free(mp, p);
@@ -928,7 +928,11 @@ nxt_mp_release(nxt_mp_t *mp, void *p)
if (mp->retain == 0) {
nxt_mp_destroy(mp);
return 0;
}
return mp->retain;
}