Skip to content

Commit

Permalink
Fix #440. Update protobuf client to clear out heartbeat requests afte…
Browse files Browse the repository at this point in the history
…r they've completed
  • Loading branch information
pauldix committed Apr 14, 2014
1 parent 75a81e0 commit 2aa5933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coordinator/protobuf_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (self *ProtobufClient) sendResponse(response *protocol.Response) {
req, ok := self.requestBuffer[*response.RequestId]
self.requestBufferLock.RUnlock()
if ok {
if *response.Type == protocol.Response_END_STREAM || *response.Type == protocol.Response_WRITE_OK {
if *response.Type == protocol.Response_END_STREAM || *response.Type == protocol.Response_WRITE_OK || *response.Type == protocol.Response_HEARTBEAT || *response.Type == protocol.Response_ACCESS_DENIED {
self.requestBufferLock.Lock()
delete(self.requestBuffer, *response.RequestId)
self.requestBufferLock.Unlock()
Expand Down

0 comments on commit 2aa5933

Please sign in to comment.