Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6216df

Browse files
[po] auto sync
1 parent 62fa67d commit e6216df

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

library/socketserver.po

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ msgid ""
290290
"listening. This function is most commonly passed to :mod:`selectors`, to "
291291
"allow monitoring multiple servers in the same process."
292292
msgstr ""
293+
"返回服务器正在监听的套接字的以整数表示的文件描述符。 此函数最常被传递给 :mod:`selectors`,以允许在同一进程中监控多个服务器。"
293294

294295
#: ../../library/socketserver.rst:205
295296
msgid ""
@@ -301,6 +302,10 @@ msgid ""
301302
"request is received within :attr:`timeout` seconds, :meth:`handle_timeout` "
302303
"will be called and :meth:`handle_request` will return."
303304
msgstr ""
305+
"处理单个请求。 此函数会依次调用下列方法: :meth:`get_request`, :meth:`verify_request` 和 "
306+
":meth:`process_request`。 如果用户提供的处理句柄类的 :meth:`~BaseRequestHandler.handle` "
307+
"方法引发了异常,则将调用服务器的 :meth:`handle_error` 方法。 如果在 :attr:`timeout` 秒内未接收到请求,将会调用 "
308+
":meth:`handle_timeout` 并将返回 :meth:`handle_request`。"
304309

305310
#: ../../library/socketserver.rst:217
306311
msgid ""
@@ -311,40 +316,47 @@ msgid ""
311316
"example, the :class:`ForkingMixIn` class uses :meth:`service_actions` to "
312317
"clean up zombie child processes."
313318
msgstr ""
319+
"对请求进行处理直至收到显式的 :meth:`shutdown` 请求。 每隔 *poll_interval* 秒对 shutdown 进行轮询。 忽略 "
320+
":attr:`timeout` 属性。 它还会调用 :meth:`service_actions`,这可被子类或混合类用来提供某个给定服务的专属操作。 "
321+
"例如,:class:`ForkingMixIn` 类使用 :meth:`service_actions` 来清理僵尸子进程。"
314322

315323
#: ../../library/socketserver.rst:225
316324
msgid "Added ``service_actions`` call to the ``serve_forever`` method."
317-
msgstr ""
325+
msgstr "将 ``service_actions`` 调用添加到 ``serve_forever`` 方法。"
318326

319327
#: ../../library/socketserver.rst:231
320328
msgid ""
321329
"This is called in the :meth:`serve_forever` loop. This method can be "
322330
"overridden by subclasses or mixin classes to perform actions specific to a "
323331
"given service, such as cleanup actions."
324332
msgstr ""
333+
"此方法会在 the :meth:`serve_forever` 循环中被调用。 此方法可被子类或混合类所重载以执行某个给定服务的专属操作,例如清理操作。"
325334

326335
#: ../../library/socketserver.rst:239
327336
msgid ""
328337
"Tell the :meth:`serve_forever` loop to stop and wait until it does. "
329338
":meth:`shutdown` must be called while :meth:`serve_forever` is running in a "
330339
"different thread otherwise it will deadlock."
331340
msgstr ""
341+
"通知 :meth:`serve_forever` 循环停止并等待它完成。 :meth:`shutdown` 必须在 "
342+
":meth:`serve_forever` 运行于不同线程时被调用否则它将发生死锁。"
332343

333344
#: ../../library/socketserver.rst:246
334345
msgid "Clean up the server. May be overridden."
335-
msgstr ""
346+
msgstr "清理服务器。 可以被重载。"
336347

337348
#: ../../library/socketserver.rst:251
338349
msgid ""
339350
"The family of protocols to which the server's socket belongs. Common "
340351
"examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`."
341352
msgstr ""
353+
"服务器套接字所属的协议族。 常见的例子有 :const:`socket.AF_INET` 和 :const:`socket.AF_UNIX`。"
342354

343355
#: ../../library/socketserver.rst:257
344356
msgid ""
345357
"The user-provided request handler class; an instance of this class is "
346358
"created for each request."
347-
msgstr ""
359+
msgstr "用户提供的请求处理句柄类;将为每个请求创建该类的实例。"
348360

349361
#: ../../library/socketserver.rst:263
350362
msgid ""

0 commit comments

Comments
 (0)