1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-25 16:01:38 +03:00

Merge pull request #246 from kriswuollett/no_fin_on_closed_stream

Stopped sending final empty frame on stream initiated in sender half-closed state.
This commit is contained in:
Jesse Wilson
2013-07-11 21:36:30 -07:00

View File

@@ -670,7 +670,9 @@ public final class SpdyStream {
}
closed = true;
}
writeFrame(true);
if (!out.finished) {
writeFrame(true);
}
connection.flush();
cancelStreamIfNecessary();
}