File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,8 @@ header_filter_by_lua* where the ngx_lua cosocket API is not available.
587587because it will then be shared by all the concurrent requests handled by the same nginx
588588 worker process (see
589589http://wiki.nginx.org/HttpLuaModule#Data_Sharing_within_an_Nginx_Worker ) and
590- result in bad race conditions when concurrent requests are trying to use the same ` resty.redis ` instance.
590+ result in bad race conditions when concurrent requests are trying to use the same ` resty.redis ` instance
591+ (you would see the "bad request" or "socket busy" error to be returned from the method calls).
591592You should always initiate ` resty.redis ` objects in function local
592593variables or in the ` ngx.ctx ` table. These places all have their own data copies for
593594each request.
You can’t perform that action at this time.
0 commit comments