1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-25 16:01:38 +03:00
This commit is contained in:
lingming.yb
2013-12-24 10:43:38 +08:00
parent 35ead0f5d1
commit b9c3ffb26a

View File

@@ -105,8 +105,7 @@ public final class Connection implements Closeable {
if (route.address.sslSocketFactory != null) {
upgradeToTls(tunnelRequest);
}
else{
} else {
streamWrapper();
}
}
@@ -329,8 +328,8 @@ public final class Connection implements Closeable {
}
}
}
private void streamWrapper(){
private void streamWrapper() throws IOException {
//Use MTU-sized buffers to send fewer packets.
int mtu = Platform.get().getMtu(socket);
if (mtu < 1024) mtu = 1024;