Opened 17 years ago
Closed 16 years ago
#8024 closed patch (fixed)
SendReceiveStringList fails after successful backend reconnect
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | MythTV - General | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
SendReceiveStringList incorporates logic to reconnect the backend socket if it dies. However, it still fails after a successful reconnect because the strlist to be written to the backend was cleared by readStringList. Attached patch creates a separate variable for writeStringList so that it can be reused after reconnection.
Refs #7847
Attachments (1)
Change History (2)
by , 17 years ago
| Attachment: | 8024-strlist.patch added |
|---|
comment:1 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [23723]) Copy the send QStringList in case we need to resend it. MythSocket::readStringList() clears the passed-in list, so if the read failed and we had to resend after a reconnect, we'd end up sending an empty list.
Closes #8024 using patch by Jeff Lu.