@@ -213,6 +213,10 @@ msgid ""
213213":attr:`ForkingMixIn.block_on_close <block_on_close>` class attribute to opt-"
214214"in for the pre-3.7 behaviour."
215215msgstr ""
216+ ":meth:`ForkingMixIn.server_close <BaseServer.server_close>` 和 "
217+ ":meth:`ThreadingMixIn.server_close <BaseServer.server_close>` "
218+ "现在会等待直到所有子进程和非守护类线程完成。 新增了一个 :attr:`ForkingMixIn.block_on_close "
219+ "<block_on_close>` 类属性用来选择 3.7 版之前的行为。"
216220
217221#: ../../library/socketserver.rst:153
218222msgid "These classes are pre-defined using the mix-in classes."
@@ -554,13 +558,18 @@ msgid ""
554558"address as :attr:`client_address`; and the server instance as "
555559":attr:`server`, in case it needs access to per-server information."
556560msgstr ""
561+ "此函数必须执行为请求提供服务所需的全部操作。 默认实现不执行任何操作。 它有几个可用的实例属性;请求为 :attr:`request`;客户端地址为 "
562+ ":attr:`client_address`;服务器实例为 :attr:`server`,如果它需要访问特定服务器信息的话。, in case it "
563+ "needs access to per-server information."
557564
558565#: ../../library/socketserver.rst:424
559566msgid ""
560567"The type of :attr:`request` is different for datagram or stream services. "
561568"For stream services, :attr:`request` is a socket object; for datagram "
562569"services, :attr:`request` is a pair of string and socket."
563570msgstr ""
571+ "针对数据报或流服务的 :attr:`request` 类型是不同的。 对于流服务,:attr:`request` "
572+ "是一个套接字对象;对于数据报服务,:attr:`request` 是一对字符串于套接字。"
564573
565574#: ../../library/socketserver.rst:431
566575msgid ""
@@ -575,40 +584,42 @@ msgstr ""
575584msgid ""
576585"The *new* :class:`socket.socket` object to be used to communicate with the "
577586"client."
578- msgstr ""
587+ msgstr "将被用于同客户端通信的 *新* :class:`socket.socket` 对象。 "
579588
580589#: ../../library/socketserver.rst:444
581590msgid "Client address returned by :meth:`BaseServer.get_request`."
582- msgstr ""
591+ msgstr ":meth:`BaseServer.get_request` 所返回的客户端地址。 "
583592
584593#: ../../library/socketserver.rst:449
585594msgid ":class:`BaseServer` object used for handling the request."
586- msgstr ""
595+ msgstr "用于处理请求的 :class:`BaseServer` 对象。 "
587596
588597#: ../../library/socketserver.rst:455
589598msgid ""
590599"These :class:`BaseRequestHandler` subclasses override the "
591600":meth:`~BaseRequestHandler.setup` and :meth:`~BaseRequestHandler.finish` "
592601"methods, and provide :attr:`rfile` and :attr:`wfile` attributes."
593602msgstr ""
603+ "这些 :class:`BaseRequestHandler` 子类重载了 :meth:`~BaseRequestHandler.setup` 和 "
604+ ":meth:`~BaseRequestHandler.finish` 方法,并提供了 :attr:`rfile` 和 :attr:`wfile` 属性。"
594605
595606#: ../../library/socketserver.rst:461
596607msgid ""
597608"A file object from which receives the request is read. Support the "
598609":class:`io.BufferedIOBase` readable interface."
599- msgstr ""
610+ msgstr "用于读取所接受请求的文件对象。 支持 :class:`io.BufferedIOBase` 可读接口。 "
600611
601612#: ../../library/socketserver.rst:466
602613msgid ""
603614"A file object to which the reply is written. Support the "
604615":class:`io.BufferedIOBase` writable interface"
605- msgstr ""
616+ msgstr "用于写入所回复内容的文件对象。 支持 :class:`io.BufferedIOBase` 可写接口。 "
606617
607618#: ../../library/socketserver.rst:470
608619msgid ""
609620":attr:`wfile` also supports the :class:`io.BufferedIOBase` writable "
610621"interface."
611- msgstr ""
622+ msgstr ":attr:`wfile` 也支持 :class:`io.BufferedIOBase` 可写接口。 "
612623
613624#: ../../library/socketserver.rst:476
614625msgid "Examples"
0 commit comments