Work around Marinetti bug where TCPIPReadLineTCP could incorrectly return an error value.

This should now be fixed in the latest Marinetti, but we'll keep the workaround to minimize the chance of problems.
This commit is contained in:
Stephen Heumann 2019-07-15 16:28:03 -05:00
parent e7230aa80e
commit a235d3b0e2
1 changed files with 2 additions and 1 deletions

3
http.c
View File

@ -149,11 +149,12 @@ netRetry:
LongWord startTime = GetTick();
do {
TCPIPPoll();
u.rlrBuff.rlrBuffCount = 0;
tcpError = TCPIPReadLineTCP(sess->ipid,
(void*)((LongWord)"\p\r\n\r\n" | 0x80000000),
buffTypeNewHandle, (Ref)NULL,
0xFFFFFF, &u.rlrBuff);
if (tcpError || toolerror()) {
if ((tcpError && u.rlrBuff.rlrBuffCount == 0) || toolerror()) {
if (netErrors == 0) {
netErrors++;
goto netRetry;