Revert "Experiment: debug wait after EOF"

This reverts commit a6f9f34480.
This commit is contained in:
M66B 2021-10-22 09:27:24 +02:00
parent ffd72ecf0e
commit 1733edce59
2 changed files with 2 additions and 15 deletions

View File

@ -20,8 +20,6 @@ import java.io.*;
import com.sun.mail.iap.ByteArray; import com.sun.mail.iap.ByteArray;
import com.sun.mail.util.ASCIIUtility; import com.sun.mail.util.ASCIIUtility;
import eu.faircode.email.TrafficStatsHelper;
/** /**
* *
* Inputstream that is used to read a Response. * Inputstream that is used to read a Response.
@ -92,10 +90,8 @@ public class ResponseInputStream {
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
eu.faircode.email.Log.w(ex); eu.faircode.email.Log.w(ex);
} }
} else if (wait > 1) { } else
TrafficStatsHelper.debug("Data after=" + wait);
wait = 1; wait = 1;
}
if (b == '\n') { if (b == '\n') {
if ((idx > 0) && buffer[idx-1] == '\r') if ((idx > 0) && buffer[idx-1] == '\r')
gotCRLF = true; gotCRLF = true;
@ -162,10 +158,8 @@ public class ResponseInputStream {
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
eu.faircode.email.Log.w(ex); eu.faircode.email.Log.w(ex);
} }
} else if (wait > 1) { } else
TrafficStatsHelper.debug("Data after=" + wait);
wait = 1; wait = 1;
}
count -= actual; count -= actual;
idx += actual; idx += actual;
} }

View File

@ -43,11 +43,4 @@ public class TrafficStatsHelper {
else else
EntityLog.log(ctx, EntityLog.Type.Statistics, msg); EntityLog.log(ctx, EntityLog.Type.Statistics, msg);
} }
public static void debug(String msg) {
if (ctx == null)
Log.e(msg);
else
EntityLog.log(ctx, EntityLog.Type.General, msg);
}
} }