Closed GoogleCodeExporter closed 8 years ago
Could you send us a local*.qrec file that causes the problem to appear? That
would
probably be helpful, thanks!
Original comment by pphaneuf
on 18 Mar 2008 at 6:22
I just played a few games after cleaning out "~/.quadra" again and the attached
file
(score of around 150k) was the first that produced the problem (the other games
had
lower scores). Tried it with the normal and the sdl version, and both only show
"connected" without actually downloading.
Btw, I copied the file to my MacBook and everything still works there (SDL
version on
MacOS X 10.5). So maybe it's a Linux only issue.
Original comment by mnieberg...@gmail.com
on 18 Mar 2008 at 7:45
Attachments:
Original comment by pphaneuf
on 1 Apr 2008 at 2:27
Original comment by pphaneuf
on 20 Apr 2008 at 6:27
Can't reproduce this on either trunk or sdl branches (on windows). I will make
a few
small improvements to the highscore updating code in trunk (as discussed
yesterday)
and then assign this back to pphaneuf.
Original comment by slaj...@gmail.com
on 20 Apr 2008 at 7:56
Made small changes in r482. The main issue seems to be linux-specific.
Original comment by slaj...@gmail.com
on 20 Apr 2008 at 8:37
The following sequence of system calls is quite enlightening... They were taken
with
"strace -e 'select,send,recv'".
select(6, NULL, [5], NULL, {0, 0}) = 1 (out [5], left {0, 0})
send(5, "POST /cgi-bin/qserv-test.pl HTTP"..., 15244, 0) = 11584
select(6, [5], NULL, NULL, {0, 0}) = 0 (Timeout)
See how there was a short-write, and then, we're not checking for writability,
so we
can write more, but instead just assume that all is well and go on to the
reading
part? This must be some bad luck related to kernel buffer sizes, that kind of
stuff,
but I think that a big enough demo would eventually expose the bug on any
platform.
Now, to think up of a fix that won't require re-architecting the whole
networking
code... Argh.
Original comment by pphaneuf
on 21 Apr 2008 at 1:13
Should be fixed by r493.
Original comment by pphaneuf
on 21 Apr 2008 at 2:39
Needs a bit more work, see code review posted to quadra-dev. Feel free to
assign to
me if you want me to make those tweaks.
Original comment by slaj...@gmail.com
on 21 Apr 2008 at 4:24
See also issue #11, a possible duplicate.
Original comment by slaj...@gmail.com
on 21 Apr 2008 at 4:36
Implementing a few more changes as discussed on quadra-dev.
Original comment by slaj...@gmail.com
on 21 Apr 2008 at 9:20
Fixed in r497.
Original comment by slaj...@gmail.com
on 21 Apr 2008 at 10:54
Original issue reported on code.google.com by
mnieberg...@gmail.com
on 8 Mar 2008 at 7:12