logwang
575b547703
Merge pull request #171 from chadwill/master
...
Nginx : a more friendly hint. Refer to #169 .
2018-03-22 15:47:00 +08:00
陈威
b62e74d7c3
Nginx : a more friendly hint
...
If the f-stack primary process hasn't been initialized successful, the nginx master gives a more friendly hint.
2018-03-22 15:41:17 +08:00
陈威
778eaa4b45
Nginx : a more friendly hint
...
If the f-stack primary process hasn't been initialized successful, the nginx master gives a more friendly hint.
2018-03-22 15:41:17 +08:00
logwang
5c98936cc5
Merge pull request #170 from yangqiang71/master
...
🐛 ai->ai_addr should be (struct sockaddr *)(ai+1)
2018-03-19 11:29:23 +08:00
logwang
86b1f8131c
Merge pull request #170 from yangqiang71/master
...
🐛 ai->ai_addr should be (struct sockaddr *)(ai+1)
2018-03-19 11:29:23 +08:00
root
6b283f8e27
🐛 ai->ai_addr should be (struct sockaddr *)(ai+1)
2018-03-19 10:40:01 +08:00
root
d151f2e185
🐛 ai->ai_addr should be (struct sockaddr *)(ai+1)
2018-03-19 10:40:01 +08:00
logwang
459d8e3935
Merge pull request #169 from chadwill/master
...
Nginx: bugfix, secondary worker should be spawned after primary completing initialization of fstack(dpdk)
2018-03-12 19:46:23 +08:00
logwang
f1e85c1896
Merge pull request #169 from chadwill/master
...
Nginx: bugfix, secondary worker should be spawned after primary completing initialization of fstack(dpdk)
2018-03-12 19:46:23 +08:00
chenwei
917b95625c
Nginx: bugfix, secondary worker should be spawned after primary worker completing initialization of fstack(dpdk)
...
When starting nginx with mutil-processes, secondary worker may be spawned before primary worker completing initialization of fstack(dpdk), so errors occurred, for one, in kni.
2018-03-12 17:13:02 +08:00
chenwei
7703b7e50a
Nginx: bugfix, secondary worker should be spawned after primary worker completing initialization of fstack(dpdk)
...
When starting nginx with mutil-processes, secondary worker may be spawned before primary worker completing initialization of fstack(dpdk), so errors occurred, for one, in kni.
2018-03-12 17:13:02 +08:00
logwang
bb6ad8038f
Set the default configuration `kern.ncallout`(number of entries in
...
callwheel and size of timeout() preallocation).
2018-03-01 16:07:35 +08:00
logwang
6b34d16078
Set the default configuration `kern.ncallout`(number of entries in
...
callwheel and size of timeout() preallocation).
2018-03-01 16:07:35 +08:00
logwang
92b0c746e9
Merge pull request #166 from chadwill/master
...
Nginx : bugfix, changing `listening socket type` may lead to errors.
2018-03-01 16:03:28 +08:00
logwang
eba4f71434
Merge pull request #166 from chadwill/master
...
Nginx : bugfix, changing `listening socket type` may lead to errors.
2018-03-01 16:03:28 +08:00
chenwei
8eec41ee4c
Nginx : bugfix, changing `listening socket type` in cycle may lead to errors.
...
Uses a temporaty variable to hold of potentially changing socket type but
does not modify `listening socket type` in cycle.
2018-03-01 15:39:33 +08:00
chenwei
65c723a426
Nginx : bugfix, changing `listening socket type` in cycle may lead to errors.
...
Uses a temporaty variable to hold of potentially changing socket type but
does not modify `listening socket type` in cycle.
2018-03-01 15:39:33 +08:00
logwang
895b4b629f
Merge pull request #161 from chadwill/master
...
Nginx : directive proxy_kernel_network_stack
2018-02-24 18:03:29 +08:00
logwang
7b05e9bf4e
Merge pull request #161 from chadwill/master
...
Nginx : directive proxy_kernel_network_stack
2018-02-24 18:03:29 +08:00
chenwei
99c10b6c22
Nginx: revise indent.
2018-02-24 17:08:59 +08:00
chenwei
42f547056e
Nginx: revise indent.
2018-02-24 17:08:59 +08:00
chenwei
7f2b0d8fb1
Nginx : add a creation flag SOCK_FSTACK(create-fstack-socket) for socket()
...
1. `#define SOCK_FSTACK 0x1000`
2. when we want to create socket by fstack, we code like this :
`s = ngx_socket(domain, type | SOCK_FSTACK , protocol);`
2018-02-24 16:45:10 +08:00
chenwei
76e16b226f
Nginx : add a creation flag SOCK_FSTACK(create-fstack-socket) for socket()
...
1. `#define SOCK_FSTACK 0x1000`
2. when we want to create socket by fstack, we code like this :
`s = ngx_socket(domain, type | SOCK_FSTACK , protocol);`
2018-02-24 16:45:10 +08:00
陈威
f8aeb5ebf4
Update F-Stack_Nginx_APP_Guide.md
2018-02-09 20:09:05 +08:00
陈威
edbcaf6eef
Update F-Stack_Nginx_APP_Guide.md
2018-02-09 20:09:05 +08:00
陈威
33f57e6e77
Merge pull request #1 from chadwill/develop
...
Nginx :directive ```proxy_kernel_network_stack```
2018-02-06 01:56:24 -06:00
陈威
38120bf0aa
Merge pull request #1 from chadwill/develop
...
Nginx :directive ```proxy_kernel_network_stack```
2018-02-06 01:56:24 -06:00
logwang
6213bcc6e0
Merge pull request #159 from chadwill/master
...
Nginx : ngx_configure_listening_sockets and hijack `recvmsg`
2018-02-06 15:22:14 +08:00
logwang
80b2d7d52b
Merge pull request #159 from chadwill/master
...
Nginx : ngx_configure_listening_sockets and hijack `recvmsg`
2018-02-06 15:22:14 +08:00
chenwei
3d7e1b6b15
Nginx : directive proxy_kernel_network_stack
...
1. Add a new directive proxy_kernel_network_stack :
Syntax: proxy_kernel_network_stack on | off;
Default: proxy_kernel_network_stack off;
Context: http, stream, mail, server
This directive is available only when NGX_HAVE_FF_STACK is defined.
Determines whether proxy should go throught kernel network stack or fstack.
2.Update F-Stack_Nginx_APP_Guide.md
2018-02-05 15:55:20 +08:00
chenwei
d1d95d5185
Nginx : directive proxy_kernel_network_stack
...
1. Add a new directive proxy_kernel_network_stack :
Syntax: proxy_kernel_network_stack on | off;
Default: proxy_kernel_network_stack off;
Context: http, stream, mail, server
This directive is available only when NGX_HAVE_FF_STACK is defined.
Determines whether proxy should go throught kernel network stack or fstack.
2.Update F-Stack_Nginx_APP_Guide.md
2018-02-05 15:55:20 +08:00
chenwei
6c629acab4
API : ff_sendmsg, use transient variables to avoid polluting user's data.
2018-02-02 17:58:17 +08:00
chenwei
b60bba339e
API : ff_sendmsg, use transient variables to avoid polluting user's data.
2018-02-02 17:58:17 +08:00
chenwei
d8829f7e5a
API : fix bug of ff_sendmsg and ff_recvmsg
...
freebsd and linux have a different "struct sockaddr".
In ff_recvmsg and ff_recvmsg, ```msg->msg_name```,which can refer to address, can be expected to be converted .
2018-02-02 15:28:58 +08:00
chenwei
26fa2bc45b
API : fix bug of ff_sendmsg and ff_recvmsg
...
freebsd and linux have a different "struct sockaddr".
In ff_recvmsg and ff_recvmsg, ```msg->msg_name```,which can refer to address, can be expected to be converted .
2018-02-02 15:28:58 +08:00
chenwei
d65c1f94b4
Nginx : replace macro with inline function to implement ```ngx_ff_skip_listening_socket```
2018-02-01 16:30:46 +08:00
chenwei
4e5f8d85e1
Nginx : replace macro with inline function to implement ```ngx_ff_skip_listening_socket```
2018-02-01 16:30:46 +08:00
chenwei
19acab5d5f
Nginx: hijack `recvmsg`.
...
Since Nginx calls `recvmsg` in stream with udp, we must
hijack this function, so that the network IO can pass through
f-stack.
2018-01-31 13:47:44 +08:00
chenwei
ab555adef4
Nginx: hijack `recvmsg`.
...
Since Nginx calls `recvmsg` in stream with udp, we must
hijack this function, so that the network IO can pass through
f-stack.
2018-01-31 13:47:44 +08:00
chenwei
c41d837fae
Nginx : ngx_configure_listening_sockets
...
1. Nginx based on fstack delays setting up server on fstack until ngx_worker_process_init. ngx_configure_listening_sockets should as well.
2. FStack does not support IP_PKTINFO
2018-01-31 13:37:58 +08:00
chenwei
f6a681c496
Nginx : ngx_configure_listening_sockets
...
1. Nginx based on fstack delays setting up server on fstack until ngx_worker_process_init. ngx_configure_listening_sockets should as well.
2. FStack does not support IP_PKTINFO
2018-01-31 13:37:58 +08:00
logwang
94e48a9b34
Merge pull request #158 from chadwill/master
...
Nginx : Fix Compile error with `--with-stream`
2018-01-31 12:45:26 +08:00
logwang
6adaac3368
Merge pull request #158 from chadwill/master
...
Nginx : Fix Compile error with `--with-stream`
2018-01-31 12:45:26 +08:00
chenwei
8c19c41dfc
Nginx : Fix Compile error
...
Fix compile error when configure nginx with --with-stream
2018-01-31 09:02:25 +08:00
chenwei
0a6b81772e
Nginx : Fix Compile error
...
Fix compile error when configure nginx with --with-stream
2018-01-31 09:02:25 +08:00
logwang
13270ed0ec
Merge pull request #156 from chadwill/patch-1
...
Update F-Stack_Nginx_APP_Guide.md
2018-01-29 19:01:26 +08:00
logwang
cc7be195f4
Merge pull request #156 from chadwill/patch-1
...
Update F-Stack_Nginx_APP_Guide.md
2018-01-29 19:01:26 +08:00
logwang
676ac0fa5b
Merge pull request #151 from chadwill/master
...
Nginx : Get rid of "ff_host" thread
2018-01-29 19:01:11 +08:00
logwang
17140315e7
Merge pull request #151 from chadwill/master
...
Nginx : Get rid of "ff_host" thread
2018-01-29 19:01:11 +08:00
chenwei
fc3a7422fa
Nginx: Restore ngx_get_connection and ngx_free_connection
...
The code that we used to preserve ngx_get_connection and ngx_free_connection thread safety , is not necessary now.
2018-01-29 16:41:35 +08:00