@@ -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."
292292msgstr ""
293+ "返回服务器正在监听的套接字的以整数表示的文件描述符。 此函数最常被传递给 :mod:`selectors`,以允许在同一进程中监控多个服务器。"
293294
294295#: ../../library/socketserver.rst:205
295296msgid ""
@@ -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."
303304msgstr ""
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
306311msgid ""
@@ -311,10 +316,13 @@ msgid ""
311316"example, the :class:`ForkingMixIn` class uses :meth:`service_actions` to "
312317"clean up zombie child processes."
313318msgstr ""
319+ "对请求进行处理直至收到显式的 :meth:`shutdown` 请求。 每隔 *poll_interval* 秒对 shutdown 进行轮询。 忽略 "
320+ ":attr:`timeout` 属性。 它还会调用 :meth:`service_actions`,这可被子类或混合类用来提供某个给定服务的专属操作。 "
321+ "例如,:class:`ForkingMixIn` 类使用 :meth:`service_actions` 来清理僵尸子进程。"
314322
315323#: ../../library/socketserver.rst:225
316324msgid "Added ``service_actions`` call to the ``serve_forever`` method."
317- msgstr ""
325+ msgstr "将 ``service_actions`` 调用添加到 ``serve_forever`` 方法。 "
318326
319327#: ../../library/socketserver.rst:231
320328msgid ""
0 commit comments