Mercurial > hg > nginx-site
annotate xml/ru/docs/events.xml @ 2585:7035221dbe37
Documented TextDecoder and TextEncoder in njs Reference.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 13 Aug 2020 21:42:01 +0100 |
parents | 4aead463a7e2 |
children |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
5 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
7 |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
76
diff
changeset
|
8 <article name="Методы обработки соединений" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 link="/ru/docs/events.html" |
589 | 10 lang="ru" |
1941
7e983e0199eb
Added note about eventport method stability.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1911
diff
changeset
|
11 rev="6"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
12 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
13 <section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
15 <para> |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
16 nginx поддерживает различные методы обработки соединений. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
17 Наличие того или иного метода зависит от используемой платформы. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
18 Если на платформе доступно сразу несколько методов, nginx обычно |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
19 сам выбирает наиболее эффективный метод. |
2044
4aead463a7e2
Removed unnecessary comma in Russian texts.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1941
diff
changeset
|
20 Однако при необходимости можно явно выбрать метод обработки |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
21 соединений с помощью директивы |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
22 <link doc="ngx_core_module.xml" id="use"/>. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
23 </para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
24 |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
25 <para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
26 Поддерживаются следующие методы обработки соединений: |
461 | 27 <list type="bullet"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
29 <listitem id="select"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
30 <para> |
271 | 31 <literal>select</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
32 Модуль для поддержки этого метода собирается автоматически, |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 если на платформе не обнаружено более эффективного метода. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
35 с помощью параметров <literal>--with-select_module</literal> и |
271 | 36 <literal>--without-select_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
39 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
40 <listitem id="poll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
41 <para> |
271 | 42 <literal>poll</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
43 Модуль для поддержки этого метода собирается автоматически, |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
44 если на платформе не обнаружено более эффективного метода. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
45 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
46 с помощью параметров <literal>--with-poll_module</literal> и |
271 | 47 <literal>--without-poll_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
49 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
50 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
51 <listitem id="kqueue"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
52 <para> |
271 | 53 <literal>kqueue</literal>—эффективный метод, используемый |
1911
f024ac0ec5c7
Apple rebranded Mac OS X to macOS.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1784
diff
changeset
|
54 во FreeBSD 4.1+, OpenBSD 2.9+, NetBSD 2.0 и macOS. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
55 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
56 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
57 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
58 <listitem id="epoll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
59 <para> |
271 | 60 <literal>epoll</literal>—эффективный метод, используемый |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
61 в Linux 2.6+. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
62 <note> |
1784
68928f8d31d9
Updated accept_mutex with info about reuseport and epollexclusive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
63 Флаги <literal>EPOLLRDHUP</literal> (Linux 2.6.17, glibc 2.8) |
68928f8d31d9
Updated accept_mutex with info about reuseport and epollexclusive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
64 и <literal>EPOLLEXCLUSIVE</literal> (Linux 4.5, glibc 2.24) |
68928f8d31d9
Updated accept_mutex with info about reuseport and epollexclusive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
65 поддерживаются начиная с 1.11.3. |
68928f8d31d9
Updated accept_mutex with info about reuseport and epollexclusive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
66 </note> |
68928f8d31d9
Updated accept_mutex with info about reuseport and epollexclusive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
67 <note> |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
68 В некоторых старых дистрибутивах, например SuSE 8.2, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
69 есть патчи для поддержки epoll ядром 2.4. |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
70 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
71 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
72 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
73 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
74 <listitem id="devpoll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
75 <para> |
271 | 76 <literal>/dev/poll</literal>—эффективный метод, используемый |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 в Solaris 7 11/99+, HP/UX 11.22+ (eventport), IRIX 6.5.15+ |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
78 и Tru64 UNIX 5.1A+. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
79 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
80 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
81 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
82 <listitem id="eventport"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
83 <para> |
1941
7e983e0199eb
Added note about eventport method stability.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1911
diff
changeset
|
84 <literal>eventport</literal>—event ports, метод, |
7e983e0199eb
Added note about eventport method stability.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1911
diff
changeset
|
85 используемый в Solaris 10+ (из-за имеющихся проблем вместо него |
7e983e0199eb
Added note about eventport method stability.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1911
diff
changeset
|
86 рекомендуется использовать метод <literal>/dev/poll</literal>). |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
87 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
88 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
89 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
90 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
91 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
92 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 </article> |