Reenabling message echo

This commit is contained in:
Joakim Erdfelt 2012-07-06 09:46:53 -07:00
parent 4e6a3dd2fd
commit 4fadeb6b4a
1 changed files with 10 additions and 8 deletions

View File

@ -2,11 +2,13 @@ package org.eclipse.jetty.websocket.server.ab;
import static org.hamcrest.Matchers.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Queue;
import java.util.concurrent.TimeUnit;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.FutureCallback;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.websocket.api.WebSocketAdapter;
@ -58,14 +60,14 @@ public class TestABCase5
}
// echo the message back.
// try
// {
// getConnection().write(message);
// }
// catch (IOException e)
// {
// e.printStackTrace(System.err);
// }
try
{
getConnection().write(null,new FutureCallback<Void>(),message);
}
catch (IOException e)
{
e.printStackTrace(System.err);
}
}
}