conn's Write method returns the wrong number of bytes written when encryption is used. This is unnoticeable when the response is less than 4096 bytes but I encountered a panic when I was implementing /resource for snapshots from cameras. The panic was in bufio.Writer with the following stack trace.
conn's Write method returns the wrong number of bytes written when encryption is used. This is unnoticeable when the response is less than 4096 bytes but I encountered a panic when I was implementing
/resource
for snapshots from cameras. The panic was inbufio.Writer
with the following stack trace.