Supporting concurrent shared memory fd receive in router.
Two different router threads may send different requests to single application worker. In this case shared memory fds from worker to router will be send over 2 different router ports. These fds will be received and processed by different threads in any order. This patch made possible to add incoming shared memory segments in arbitrary order. Additionally, array and memory pool are no longer used to store segments because of pool's single threaded nature. Custom array-like structure nxt_port_mmaps_t introduced.
This commit is contained in:
@@ -103,7 +103,6 @@ typedef struct {
|
||||
#include <nxt_service.h>
|
||||
|
||||
typedef struct nxt_buf_s nxt_buf_t;
|
||||
typedef struct nxt_port_mmap_s nxt_port_mmap_t;
|
||||
#include <nxt_buf.h>
|
||||
#include <nxt_buf_pool.h>
|
||||
#include <nxt_recvbuf.h>
|
||||
|
||||
Reference in New Issue
Block a user