circuitpython/ports
Jeff Epler 57756863ef
picow: depending on memory pressure, may only be able to write 1 MSS
Foamyguy discovered that trying to send >2920 bytes at once consistently
failed. I further discovered that sometimes trying to send >1460 bytes
would fail too.  By "fail", I mean that it would take a very long time
(around 200 * 50ms) before erroneously reporting that all bytes were
written.

In my testing, this change causes larger writes to successfully
send either 2920 or 1460 bytes (possibly after doing some 50ms waits
for a previous packet to clear).

The documentation of socket.send always stated that it COULD send fewer
bytes than requested, but adafruit_httpserver assumed that the number
of requested bytes were always sent, so after this change alone,
adafruit_httpserver will still not work properly.

Closes: #7077 (albeit fixes are needed in adafruit_httpserver too)
2022-10-17 19:42:07 -05:00
..
atmel-samd Merge remote-tracking branch 'adafruit/main' into add-os-utime-function 2022-10-13 14:15:13 -04:00
broadcom Tweak black_bindings 2022-09-30 11:18:13 -05:00
cxd56 remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
espressif improve dualbank errors 2022-10-15 13:20:10 +05:30
litex remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
mimxrt10xx remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
nrf fix ai-thinker creation ids; fix some typos elsewhere 2022-10-03 15:29:03 -04:00
raspberrypi picow: depending on memory pressure, may only be able to write 1 MSS 2022-10-17 19:42:07 -05:00
stm Use types from circuitpython. 2022-10-10 20:55:44 +02:00
unix Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00