optiopay / kafka

Go driver for Kafka

Home Page:https://godoc.org/github.com/optiopay/kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle network errors in Produce and Consume

legionus opened this issue · comments

You added the error handling code in the offset() function:
https://github.com/optiopay/kafka/blob/master/broker.go#L541

I think similar code should be added to other functions where we process io.EOF and syscall.EPIPE:

https://github.com/optiopay/kafka/blob/master/broker.go#L719
https://github.com/optiopay/kafka/blob/master/broker.go#L998