Skip to content

Commit c49ba7c

Browse files
committed
doc: mentioned the "bad request" error in the "Limitations" section.
1 parent 4f41f9f commit c49ba7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ header_filter_by_lua* where the ngx_lua cosocket API is not available.
587587
because it will then be shared by all the concurrent requests handled by the same nginx
588588
worker process (see
589589
http://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).
591592
You should always initiate `resty.redis` objects in function local
592593
variables or in the `ngx.ctx` table. These places all have their own data copies for
593594
each request.

0 commit comments

Comments
 (0)