Bug #20072 | sleep(1) makes protocol error go away, with multi-statement query | ||
---|---|---|---|
Submitted: | 25 May 2006 18:29 | Modified: | 24 Jul 2006 9:18 |
Reporter: | Timothy Smith | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.0.22 | OS: | Linux (linux, freebsd, any) |
Assigned to: | Magnus Blåudd | CPU Architecture: | Any |
[25 May 2006 18:29]
Timothy Smith
[25 May 2006 18:30]
Timothy Smith
Test program; #define SLEEP_HACK 1 to see changed behavior
Attachment: mult_update.c (application/octet-stream, text), 2.39 KiB.
[25 May 2006 18:35]
Timothy Smith
See also bug #20070; fixing this may also fix that one.
[7 Jun 2006 13:11]
Magnus Blåudd
I supsect it is the server that disconnects the client when it's not doing anything for a while. Thus the client will reconnect before the next "question" to the server and during that process the buffers will have been flushed.
[21 Jul 2006 12:48]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/9414
[22 Jul 2006 15:58]
Konstantin Osipov
This is a duplicate of Bug#15752. Magnus, your patch is almost okay, but please review my patch, it's touches another place where we should check for mysql->server_status. Thanks. Chad, I'm stealing this.
[24 Jul 2006 9:18]
Magnus Blåudd
Duplicate of bug#15752. Reviewed, patch looks fine.