Closed GoogleCodeExporter closed 9 years ago
After some debugging I found out that the file.Read call returns correcty an
EOF error, but my client doesn't return because it's blocked on "defer
file.Close()".
I believe it's a bug and that file.Close() should be able to complete also in
this circumstance.
Original comment by mmikuli...@gmail.com
on 31 May 2011 at 2:21
So basically what happens is that after a connection is broken every next
attempt to send rpc messages will block.
This happens because the "Send" goroutine exits without closing his acceptor
channel:
func (clnt *Clnt) send() {
for {
select {
case <-clnt.done:
return
...
Attaching a patch.
Original comment by mmikuli...@gmail.com
on 31 May 2011 at 3:07
Thanks for catching this.
I think there is much simpler fix, just pushed it. Can you please check if it
fixes the bug for you?
Thanks,
Lucho
Original comment by lion...@gmail.com
on 31 May 2011 at 7:56
Original issue reported on code.google.com by
mmikuli...@gmail.com
on 31 May 2011 at 1:32