Ping ping) {
switch (ping.getValue1()) {
case Ping.CLIENT_BUFFER:
if (ping.getValue2() != 0) {
// The client wants to set the buffer time
IClientStream stream = conn.getStreamById(ping.getValue2());
int buffer = ping.getValue3();
if (stream != null) {
stream.setClientBufferDuration(buffer);
log.info("Setting client buffer on stream: {}", buffer);
} else {
// Remember buffer time to set until stream will be
// created
conn.rememberStreamBufferDuration(ping.getValue2(),