Connection rest by peers and post example #1659
-
Hllo, I am coming back to this library - great job for maintaining it year after year. My problem is maybe not related to it, but you might have guidance on what's going on. I am using a AI thinker audiokit 2.2 board that works with the AudioKitAC101 setup. Everytime, a couple of packets are sent through (a variable number, maybe 4 or 5) and then the post fails with "connection reset by peers". I have a toy nodejs/express server on the other end and I can see the connection, but then no actual packets are received, then the connection ends. I was wondering if you had a server iumplementation that you could share or maybe some guidance on some common error with esp32 network failures. For reference, here is a log sample:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Actually the default sinc to post request is not suited to send chunked encoded streams. I build my own sink to post an audio stream and that is working as intended. |
Beta Was this translation helpful? Give feedback.
-
That's correct: by default it is not chunked. |
Beta Was this translation helpful? Give feedback.
That's correct: by default it is not chunked.
If you want to do so, you would need to set the TRANSFER_ENCODING to CHUNKED in the request header.