Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bye reply

  • Loading branch information...
commit ea2342dc3b55deae802a3200dbcd7c25a31498aa 1 parent db22ed3
Daniel Gómez Ferro authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/yahoo/pasc/paxos/server/tcp/TcpServer.java
4 src/main/java/com/yahoo/pasc/paxos/server/tcp/TcpServer.java
View
@@ -221,7 +221,9 @@ public void addClient(int clientId, Channel channel) {
if (clientChannels.containsKey(clientId)) {
Bye bye = new Bye(clientId, id);
bye.storeReplica(bye);
- forward(Arrays.<Message> asList(bye));
+ embedder.offer(bye);
+ ChannelBuffer encoded = embedder.poll();
+ channel.write(encoded);
} else {
LOG.debug("Adding client " + clientId + " " + channel);
clientChannels.put(clientId, channel);
Please sign in to comment.
Something went wrong with that request. Please try again.