mirror of
https://github.com/sheumann/DiskBrowser.git
synced 2024-11-25 02:32:44 +00:00
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:
parent
e7230aa80e
commit
a235d3b0e2
3
http.c
3
http.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user