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
Currently, in startHttpSender(), if an error occurs then the buffer which was sent is queued to the ErrorChannel. Unfortunately, with the default Send implementation, this buffer has been fully read. My application code is reading from the ErrorChannel to perform more complex error handling, and I need to read that buffer.
I'm working around it right now with this code where I instantiate the indexer:
indexer.Sender=func(buf*bytes.Buffer) error {
//clone the buffer before we sendreturnindexer.Send(bytes.NewBuffer(buf.Bytes()))
}
If I have some time later I may submit a pull request, it should be a simple change.
The text was updated successfully, but these errors were encountered:
Currently, in
startHttpSender()
, if an error occurs then the buffer which was sent is queued to the ErrorChannel. Unfortunately, with the default Send implementation, this buffer has been fully read. My application code is reading from the ErrorChannel to perform more complex error handling, and I need to read that buffer.I'm working around it right now with this code where I instantiate the indexer:
If I have some time later I may submit a pull request, it should be a simple change.
The text was updated successfully, but these errors were encountered: