Opened 15 years ago
Closed 14 years ago
Last modified 14 years ago
#7844 closed Patch - Bug Fix (fixed)
Fix mythsocketthread log spam for non-pipe select (windows)
Reported by: | Owned by: | beirdo | |
---|---|---|---|
Priority: | minor | Milestone: | 0.25 |
Component: | Ports - Windows | Version: | Master Head |
Severity: | low | Keywords: | win32 socket |
Cc: | Ticket locked: | no |
Description
Attached patch fixes a nuisance bug that generates continuous "select returned error" messages when VB_SOCKET logging is turned on. fd_set needs to be reset between calls to select(), so the "while (!rval)" loop and redundant wait need to go.
Attachments (1)
Change History (7)
Changed 15 years ago by
Attachment: | 7844-mythsocketthread.patch added |
---|
comment:1 Changed 15 years ago by
Component: | MythTV - General → Ports - Windows |
---|---|
Owner: | changed from Isaac Richards to Nigel |
comment:2 Changed 15 years ago by
Owner: | changed from Nigel to markk |
---|---|
Status: | new → assigned |
comment:3 Changed 15 years ago by
Milestone: | unknown → 0.25 |
---|---|
Status: | assigned → accepted |
comment:4 Changed 14 years ago by
Type: | patch → Patch - Bug Fix |
---|---|
Version: | head → Trunk Head |
comment:5 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fix spamming non-pipe select
It is necessary to reset the contents of rfds and efds both every time before running select. As this was missing from the loop, unexpected breakage occurred. Also, don't say we've received data if the rval <= 0 (i.e. no results or an error).
This is inspired by the patch in #7844. Closes #7844.
Branch: master Changeset: ea364b3b2be961bb0949381a0c1647ab9b35763e
comment:6 Changed 14 years ago by
Owner: | changed from markk to beirdo |
---|
This one seems pretty simple to review for anyone familiar with the socket code. I'm not sure it's specific to Windows either.