You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created this Issue, when trying to create HTTP server on Wiznet5k Pico W5100S. Unfortunately, I could solve this only particularly, because socket isn't working stable. It was blocking, if not receivinig bytes after some not fixed time, or receiving multiple requests at once. I've managed to solve double request(it was HTTP lib problem) and time blocking, but 3 or more requests blocking socket immediately.
The text was updated successfully, but these errors were encountered:
hi, i am using this adafruit/Adafruit_CircuitPython_HTTPServer#41 (comment), traceback is the same. Code stucks in "write" method, because there are multiple calls to "listen" or "accept", then it stucks in adafruit_wiznet5k.py
# if buffer is available, start the transfer
free_size = self._get_tx_free_size(socket_num)
while free_size < ret:
free_size = self._get_tx_free_size(socket_num)
status = self.socket_status(socket_num)[0]
if status not in (SNSR_SOCK_ESTABLISHED, SNSR_SOCK_CLOSE_WAIT) or (
timeout and time.monotonic() - stamp > timeout
):
ret = 0
break
because it can't get free size of socket_num. Unfortunately, I can't reproduce as I don't have a board
I've created this Issue, when trying to create HTTP server on Wiznet5k Pico W5100S. Unfortunately, I could solve this only particularly, because socket isn't working stable. It was blocking, if not receivinig bytes after some not fixed time, or receiving multiple requests at once. I've managed to solve double request(it was HTTP lib problem) and time blocking, but 3 or more requests blocking socket immediately.
The text was updated successfully, but these errors were encountered: