d82da8fd71
When receiving a response, what was happening 1. Read bufferSize and it gets assigned to leftdata 2. Read another bufferSize 3. 2 buffers get appended, but leftdata still points to first buffer 4. Process data buffer which contains only complete responses 5. Back to ReadLoop, but leftdata still points to first incomplete buffer causing corrupt data to be processed Solution is to make leftdata nil once we have merged it with the second buffer |
||
---|---|---|
.. | ||
client_test.go | ||
client.go | ||
common.go | ||
error.go | ||
id_test.go | ||
id.go | ||
pool_test.go | ||
pool.go | ||
request.go | ||
response.go | ||
status.go |