go-imap icon indicating copy to clipboard operation
go-imap copied to clipboard

Is there any way to setup auto reconnect when tcp disconnect

Open gtsigner opened this issue 2 years ago • 3 comments

im using proxy on my local codes, tcp will be closed when proxy server change. so is there any way to solve it?

image

gtsigner avatar Feb 15 '22 23:02 gtsigner

this error encounter in select method.

gtsigner avatar Feb 15 '22 23:02 gtsigner

i think c.conn.Writer conn has been closed by server image

gtsigner avatar Feb 15 '22 23:02 gtsigner

the conn of the client is easy to disconnet if the network is unstable. i didn't find any issue talk about it. im very appreciate it if anyone can provide idea to fix it.

gtsigner avatar Feb 16 '22 00:02 gtsigner

You'll need to handle the reconnect logic yourself. The library won't auto-reconnect.

emersion avatar Mar 23 '23 11:03 emersion