Max Romanov
b4540f0960
Removing unused tracking fields and functions.
...
The message tracking is unused since 1d84b9e4b459 commit.
This fixes the issue found by Coverity (CID 376263).
2022-06-07 13:59:45 +08:00
Tiago Natel de Moura
ff6a7053f5
Introduced SCM_CREDENTIALS / SCM_CREDS in the socket control msgs.
2021-11-09 15:48:44 +03:00
Max Romanov
f147943f63
Style fixes for 2 file descriptors transfer over port.
...
Two consecutive fd and fd2 fields replaced with array.
2020-08-11 21:48:27 +03:00
Max Romanov
aacf11152c
Moving nxt_stream_ident to shared memory.
...
This aims to avoid stream id clashes after router restart.
2020-05-28 12:41:00 +03:00
Max Romanov
bd1eb7b502
RPC error message size fixed.
...
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.
2019-02-25 18:09:37 +03:00
Valentin Bartenev
d15b4ca906
Style.
2018-04-05 15:49:41 +03:00
Valentin Bartenev
0665896a55
Style: capitalized letters in hexadecimal literals.
2018-04-04 18:13:05 +03:00
Igor Sysoev
7205bf4b86
Using nxt_lvlhsh_peek() and nxt_lvlhsh_retrieve().
2018-03-29 16:35:36 +03:00
Max Romanov
778a90c319
Triggering RPC error for all handlers on port close.
...
This is required to avoid crashes and memory leaks on Unit exit.
2018-03-21 16:55:09 +03:00
Max Romanov
b865db1bb7
Registered RPC handlers affects port use counters.
...
Service process port gets closed and released by runtime on process exit,
but there can be active RPC handlers, which uses port structure.
2018-03-21 16:55:02 +03:00
Sergey Kandaurov
771e9d3cc3
Fixed formatting in nxt_sprintf() and logging.
2018-01-24 15:16:33 +03:00
Max Romanov
5196cf4d50
Rescheduling of pending request after configured timeout.
...
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.
2017-12-27 17:48:04 +03:00
Max Romanov
bef2ec483e
Fixing application timeout.
...
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.
2017-12-27 17:47:18 +03:00
Max Romanov
0bec14878e
Introducing application timeout.
2017-09-15 20:30:24 +03:00
Igor Sysoev
58907888e5
Style fixes.
2017-09-06 02:30:55 +03:00
Max Romanov
162afe4719
RPC: peer pid special value -1 may be used if pid is unknown.
2017-08-11 18:04:04 +03:00
Max Romanov
f2e9afdf42
Port RPC interface introduced.
...
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().
2017-08-02 13:14:31 +03:00