Skip to content

Commit 562e106

Browse files
authored
doc: fixed typo.
1 parent de02114 commit 562e106

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ A zero value of `<num>` disables the cache.
13851385

13861386
Note that this feature requires OpenResty's LuaJIT with the new C API `lua_resetthread`.
13871387

1388-
This feature was first introduced in verson `v0.10.9`.
1388+
This feature was first introduced in version `v0.10.9`.
13891389

13901390
[Back to TOC](#directives)
13911391

@@ -6668,7 +6668,7 @@ ngx.http_time
66686668

66696669
**context:** *init_worker_by_lua&#42;, set_by_lua&#42;, rewrite_by_lua&#42;, access_by_lua&#42;, content_by_lua&#42;, header_filter_by_lua&#42;, body_filter_by_lua&#42;, log_by_lua&#42;, ngx.timer.&#42;, balancer_by_lua&#42;, ssl_certificate_by_lua&#42;, ssl_session_fetch_by_lua&#42;, ssl_session_store_by_lua&#42;, exit_worker_by_lua&#42;, ssl_client_hello_by_lua&#42;*
66706670

6671-
Returns a formated string can be used as the http header time (for example, being used in `Last-Modified` header). The parameter `sec` is the time stamp in seconds (like those returned from [ngx.time](#ngxtime)).
6671+
Returns a formatted string can be used as the http header time (for example, being used in `Last-Modified` header). The parameter `sec` is the time stamp in seconds (like those returned from [ngx.time](#ngxtime)).
66726672

66736673
```nginx
66746674
@@ -8763,9 +8763,9 @@ By default, the corresponding Nginx handler (e.g., [rewrite_by_lua](#rewrite_by_
87638763

87648764
When the user "light thread" terminates with a Lua error, however, it will not abort other running "light threads" like the "entry thread" does.
87658765

8766-
Due to the limitation in the Nginx subrequest model, it is not allowed to abort a running Nginx subrequest in general. So it is also prohibited to abort a running "light thread" that is pending on one ore more Nginx subrequests. You must call [ngx.thread.wait](#ngxthreadwait) to wait for those "light thread" to terminate before quitting the "world". A notable exception here is that you can abort pending subrequests by calling [ngx.exit](#ngxexit) with and only with the status code `ngx.ERROR` (-1), `408`, `444`, or `499`.
8766+
Due to the limitation in the Nginx subrequest model, it is not allowed to abort a running Nginx subrequest in general. So it is also prohibited to abort a running "light thread" that is pending on one or more Nginx subrequests. You must call [ngx.thread.wait](#ngxthreadwait) to wait for those "light thread" to terminate before quitting the "world". A notable exception here is that you can abort pending subrequests by calling [ngx.exit](#ngxexit) with and only with the status code `ngx.ERROR` (-1), `408`, `444`, or `499`.
87678767

8768-
The "light threads" are not scheduled in a pre-emptive way. In other words, no time-slicing is performed automatically. A "light thread" will keep running exclusively on the CPU until
8768+
The "light threads" are not scheduled in a preemptive way. In other words, no time-slicing is performed automatically. A "light thread" will keep running exclusively on the CPU until
87698769

87708770
1. a (nonblocking) I/O operation cannot be completed in a single run,
87718771
1. it calls [coroutine.yield](#coroutineyield) to actively give up execution, or

0 commit comments

Comments
 (0)