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

Skip to content

Commit c4c67e1

Browse files
[po] auto sync
1 parent 8b00302 commit c4c67e1

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

library/socketserver.po

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,17 +370,17 @@ msgstr ""
370370
#: ../../library/socketserver.rst:272
371371
msgid ""
372372
"The socket object on which the server will listen for incoming requests."
373-
msgstr ""
373+
msgstr "将由服务器用于监听入站请求的套接字对象。"
374374

375375
#: ../../library/socketserver.rst:275
376376
msgid "The server classes support the following class variables:"
377-
msgstr ""
377+
msgstr "服务器类支持下列类变量:"
378378

379379
#: ../../library/socketserver.rst:281
380380
msgid ""
381381
"Whether the server will allow the reuse of an address. This defaults to "
382382
":const:`False`, and can be set in subclasses to change the policy."
383-
msgstr ""
383+
msgstr "服务器是否要允许地址的重用。 默认值为 :const:`False`,并可在子类中设置以改变策略。"
384384

385385
#: ../../library/socketserver.rst:287
386386
msgid ""
@@ -390,39 +390,48 @@ msgid ""
390390
"further requests from clients will get a \"Connection denied\" error. The "
391391
"default value is usually 5, but this can be overridden by subclasses."
392392
msgstr ""
393+
"请求队列的长度。 如果处理单个请求要花费很长的时间,则当服务器正忙时到达的任何请求都会被加入队列,最多加入 "
394+
":attr:`request_queue_size` 个请求。 一旦队列被加满,来自客户端的更多请求将收到 \"Connection denied\" "
395+
"错误。 默认值为 5,但可在子类中重载。"
393396

394397
#: ../../library/socketserver.rst:296
395398
msgid ""
396399
"The type of socket used by the server; :const:`socket.SOCK_STREAM` and "
397400
":const:`socket.SOCK_DGRAM` are two common values."
398401
msgstr ""
402+
"服务器使用的套接字类型;常见的有 :const:`socket.SOCK_STREAM` 和 :const:`socket.SOCK_DGRAM` "
403+
"这两个值。"
399404

400405
#: ../../library/socketserver.rst:302
401406
msgid ""
402407
"Timeout duration, measured in seconds, or :const:`None` if no timeout is "
403408
"desired. If :meth:`handle_request` receives no incoming requests within the"
404409
" timeout period, the :meth:`handle_timeout` method is called."
405410
msgstr ""
411+
"超时限制,以秒数表示,或者如果不限制超时则为 :const:`None`。 如果在超时限制期间没有收到 "
412+
":meth:`handle_request`,则会调用 :meth:`handle_timeout` 方法。"
406413

407414
#: ../../library/socketserver.rst:307
408415
msgid ""
409416
"There are various server methods that can be overridden by subclasses of "
410417
"base server classes like :class:`TCPServer`; these methods aren't useful to "
411418
"external users of the server object."
412-
msgstr ""
419+
msgstr "有多个服务器方法可被服务器基类的子类例如 :class:`TCPServer` 所重载;这些方法对服务器对象的外部用户来说并无用处。"
413420

414421
#: ../../library/socketserver.rst:316
415422
msgid ""
416423
"Actually processes the request by instantiating :attr:`RequestHandlerClass` "
417424
"and calling its :meth:`~BaseRequestHandler.handle` method."
418425
msgstr ""
426+
"通过实例化 :attr:`RequestHandlerClass` 并调用其 :meth:`~BaseRequestHandler.handle` "
427+
"方法来实际处理请求。"
419428

420429
#: ../../library/socketserver.rst:322
421430
msgid ""
422431
"Must accept a request from the socket, and return a 2-tuple containing the "
423432
"*new* socket object to be used to communicate with the client, and the "
424433
"client's address."
425-
msgstr ""
434+
msgstr "必须接受来自套接字的请求,并返回一个 2 元组,其中包含用来与客户端通信的 *new* 套接字对象,以及客户端的地址。"
426435

427436
#: ../../library/socketserver.rst:329
428437
msgid ""
@@ -431,6 +440,8 @@ msgid ""
431440
"action is to print the traceback to standard error and continue handling "
432441
"further requests."
433442
msgstr ""
443+
"此函数会在 :attr:`RequestHandlerClass` 实例的 :meth:`~BaseRequestHandler.handle` "
444+
"方法引发异常时被调用。 默认行为是将回溯信息打印到标准错误并继续处理其他请求。"
434445

435446
#: ../../library/socketserver.rst:334
436447
msgid ""

0 commit comments

Comments
 (0)