Bug #82862 xplugin: server does not seem to respond to "0-sized" messages correctly
| Submitted: | 5 Sep 2016 16:55 | Modified: | 24 Jan 2017 12:53 |
|---|---|---|---|
| Reporter: | Simon Mudd | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Document Store: X Plugin | Severity: | S3 (Non-critical) |
| Version: | 5.7.14 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[5 Sep 2016 16:55]
Simon Mudd
[5 Sep 2016 16:55]
Simon Mudd
Short script to connect to server and send 0-length message.
Attachment: main.go (application/octet-stream, text), 1.04 KiB.
[5 Sep 2016 17:34]
Jan Kneschke
$ perl -e 'print("\x00" x 4)' | nc 127.0.0.1 33060 | hd
should produce the same behaviour
[6 Sep 2016 4:37]
MySQL Verification Team
I'm marking this bug as private until web team removes path from Simon's initial note. Requested web team to remove the same.
[6 Sep 2016 4:58]
MySQL Verification Team
Hello Simon, Thank you for the report and test case. Thanks, Umesh
[6 Sep 2016 4:59]
MySQL Verification Team
-- ushastry@bugs:~$ go run main.go 2016/09/06 10:29:37 connected to: 127.0.0.1:33060 2016/09/06 10:29:37 Wrote 4 bytes indicating zero length message size 2016/09/06 10:29:37 Waiting for 4 bytes of response 2016/09/06 10:30:07 net.Read failed: only read 0 of 4 bytes: EOF exit status 1
[6 Sep 2016 13:36]
Vlad Safronov
The path fixed.
[24 Jan 2017 12:53]
Tony Bedford
Posted by developer:
A entry has been added to the 5.7.17 and 8.0.1 changelogs:
When the client sent a zero length message, the X Plugin did not send a response.
For a subsequent message the client received an error E_X_BAD_MESSAGE and was disconnected, depending on the header content.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.