We are using HTTP to transmit REST state-updates. Our firmware is working, but it is slow when transmitting several measurements back-to-back because we perform the entire TCP-socket-open/close dance for every transmitted state.
Now, I want to use a single socket connection to transmit repeated HTTP POST for device state.
If I do something like holding the socket open indefinitely until your server closes it, is that acceptable? Or is that something you discourage?