Age | Commit message (Collapse) | Author | Files | Lines |
|
The message tracking is unused since 1d84b9e4b459 commit.
This fixes the issue found by Coverity (CID 376263).
|
|
|
|
Two consecutive fd and fd2 fields replaced with array.
|
|
This aims to avoid stream id clashes after router restart.
|
|
In case of RPC error, special error message passed to handler.
Field 'size' expected to be 0 in this case because in contains fake
empty buffer.
|
|
|
|
|
|
|
|
This is required to avoid crashes and memory leaks on Unit exit.
|
|
Service process port gets closed and released by runtime on process exit,
but there can be active RPC handlers, which uses port structure.
|
|
|
|
New optional configuration parameter introduced: limits.reschedule_timeout.
Default value 1 second. In the case when request is written to the port
socket 'in advance', it is called 'pending'.
On every completed request, the head of pending request is checked against
reschedule timeout. If this request waiting for execution longer than
timeout, it is cancelled, new port selected for this request.
|
|
Application timeout limits maximum time of worker response in processing
particular request. Not including the time required to start worker,
time in request queue etc.
|
|
|
|
|
|
|
|
Usage:
1. Register handlers in incoming port with nxt_port_rpc_register_handler().
2. Use return value as a stream identifier for next nxt_port_socket_write().
|