Opened 21 years ago
Closed 21 years ago
#210 closed patch (fixed)
WriteBlock Function would block indefinitly when bytesToWrite > written
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | WriteBlock util.cpp |
| Cc: | Ticket locked: | no |
Description
I noticed that occasionally the WriteBlock function would not return. I traced it down to a while loop that executed only when socket->bytesToWrite() >= written.
I changed it to call socket->flush() and reduced the usleep which stopped the lockup in all my testing.
Attachments (1)
Change History (2)
by , 21 years ago
| Attachment: | util.cpp.diff added |
|---|
comment:1 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [7050]) Close #210. Apply a similar patch to fix WriteBlock from looping..