} else {
TSocket socket = new TSocket(host, port);
socket.setTimeout(socketTimeout);
transport = socket;
if (framed) {
transport = new TFramedTransport(transport);
} else if (header) {
THeaderTransport htrans = new THeaderTransport(transport);
htrans.addTransform(THeaderTransport.Transforms.ZLIB_TRANSFORM);
// Test that decode works with multiple small blocks
htrans.setZlibBufferSize(10);