Streaming: log tweak to assist in fixing ticket #1939

This commit is contained in:
zzz
2017-11-19 21:32:12 +00:00
parent 3abc777062
commit 14e9315262

View File

@@ -1017,6 +1017,8 @@ class Connection {
public void setChoking(boolean on) {
if (on != _isChoking) {
_isChoking = on;
if (_log.shouldWarn())
_log.warn("Choking changed to " + on + " on " + this);
if (!on)
_unchokesToSend.set(UNCHOKES_TO_SEND);
ackImmediately();
@@ -1031,7 +1033,11 @@ class Connection {
* @since 0.9.29
*/
public void setChoked(boolean on) {
_isChoked = on;
if (on != _isChoked) {
_isChoked = on;
if (_log.shouldWarn())
_log.warn("Choked changed to " + on + " on " + this);
}
if (on) {
congestionOccurred();
// https://en.wikipedia.org/wiki/Transmission_Control_Protocol