ECE595 / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
0 stars 1 forks source link

Socket/listen backlog default arg #14

Closed jbbjarnason closed 2 years ago

jbbjarnason commented 2 years ago

Socket listen with default argument of 128 for all ports BUT Unix where it defaults to 128 or SOMAXCONN whichever is less.

Did not apply this to cc3200 since it is not as straightforward.

from the docs

.. method:: socket.listen([backlog])

   Enable a server to accept connections. If *backlog* is specified, it must be at least 0
   (if it's lower, it will be set to 0); and specifies the number of unaccepted connections
   that the system will allow before refusing new connections. If not specified, a default
   reasonable value is chosen.
codecov-commenter commented 2 years ago

Codecov Report

Merging #14 (d6552e3) into master (665f0e2) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #14   +/-   ##
=======================================
  Coverage   98.40%   98.40%           
=======================================
  Files         153      153           
  Lines       20188    20188           
=======================================
  Hits        19865    19865           
  Misses        323      323           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 665f0e2...d6552e3. Read the comment docs.