kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 6e5e1735659279f4706621617711c94c0ced14962ef7432efbba70e26d8d5358 |
|---|---|
| Author | Sylvain Lebresne <sylvain@datastax.com> · 2013-11-19 19:00 +01:00 |
| Committer | Sylvain Lebresne <sylvain@datastax.com> · 2013-11-19 19:00 +01:00 |
| Parents | 62959ab10f48 |
1 file changed
modified driver-examples/stress/src/main/java/com/datastax/driver/stress/Stress.java +1 −3
| @@ -224,14 +224,12 @@ | ||
| 224 | 224 | System.out.println(" per-host connections: " + maxConnections); |
| 225 | 225 | System.out.println(" compression: " + options.has("compression")); |
| 226 | 226 | |
| 227 | - SocketOptions socket = new SocketOptions(); | |
| 228 | - socket.setTcpNoDelay(true); | |
| 229 | - | |
| 230 | 227 | try { |
| 231 | 228 | // Create session to hosts |
| 232 | 229 | Cluster cluster = new Cluster.Builder() |
| 233 | 230 | .addContactPoints(String.valueOf(options.valueOf("ip"))) |
| 234 | 231 | .withPoolingOptions(pools) |
| 232 | + .withSocketOptions(new SocketOptions().setTcpNoDelay(true)) | |
| 235 | 233 | .build(); |
| 236 | 234 | |
| 237 | 235 | if (options.has("compression")) |