Commit dc8c4476 authored by Rob Pike's avatar Rob Pike

post-submit tweaks to previous cl

R=rsc
DELTA=5  (4 added, 1 deleted, 0 changed)
OCL=31690
CL=31692
parent 9211a7d4
...@@ -43,8 +43,8 @@ func (client *Client) send(c *Call) { ...@@ -43,8 +43,8 @@ func (client *Client) send(c *Call) {
// Register this call. // Register this call.
client.Lock(); client.Lock();
if client.shutdown != nil { if client.shutdown != nil {
client.Unlock();
c.Error = client.shutdown; c.Error = client.shutdown;
client.Unlock();
doNotBlock := c.Done <- c; doNotBlock := c.Done <- c;
return; return;
} }
...@@ -72,6 +72,9 @@ func (client *Client) serve() { ...@@ -72,6 +72,9 @@ func (client *Client) serve() {
response := new(Response); response := new(Response);
err = client.dec.Decode(response); err = client.dec.Decode(response);
if err != nil { if err != nil {
if err == os.EOF {
err = io.ErrUnexpectedEOF;
}
break break
} }
seq := response.Seq; seq := response.Seq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment