Closed Bug 507370 Opened 15 years ago Closed 15 years ago

ssltunnel may hang with 100% CPU load, breaking the tests execution

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(status1.9.2 beta1-fixed)

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: mayhemer, Assigned: mayhemer)

References

Details

(Keywords: fixed1.9.1)

Attachments

(3 files)

When client breaks the connection by force (not a bug itself) ssltunnel indefinitely loops.
Clear the output buffer when we get fatal write error to break the socket thread loop, we are not able to send it out to a dead socket no more, anyway.
Attachment #391572 - Flags: review?(jwalden+bmo)
Attachment #391572 - Flags: review?(jwalden+bmo) → review+
Comment on attachment 391572 [details] [diff] [review]
v1 [Checkin comment 2]

http://hg.mozilla.org/mozilla-central/rev/b61bc50678e7
Attachment #391572 - Attachment description: v1 → v1 [Checkin comment 2]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Additional fix for the linux platform. I has already solved this ones for a different piece of software, I really don't know how I could forget :)
Attachment #393190 - Flags: review?(ted.mielczarek)
Blocks: 508835
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
Attachment #393190 - Flags: review?(ted.mielczarek) → review+
Blocks: 509692
Comment on attachment 393190 [details] [diff] [review]
v1 (2) [Checkin comment 4,5]

http://hg.mozilla.org/mozilla-central/rev/87e2cdc2d50e
Attachment #393190 - Attachment description: v1 (2) → v1 (2) [Checkin comment 4]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Comment on attachment 393190 [details] [diff] [review]
v1 (2) [Checkin comment 4,5]

>+        if (out_flags & (PR_POLL_EXCEPT | PR_POLL_ERR | PR_POLL_HUP))
>         {
>         } // PR_POLL_EXCEPT handling

Nit: update/remove the comment.
Whiteboard: [T.M.=mozilla-1.9.3]
(In reply to comment #5)
> (From update of attachment 393190 [details] [diff] [review])
> >+        if (out_flags & (PR_POLL_EXCEPT | PR_POLL_ERR | PR_POLL_HUP))
> >         {
> >         } // PR_POLL_EXCEPT handling
> 
> Nit: update/remove the comment.

http://hg.mozilla.org/mozilla-central/rev/75de8ba849b2
Comment on attachment 393190 [details] [diff] [review]
v1 (2) [Checkin comment 4,5]

http://hg.mozilla.org/releases/mozilla-1.9.2/rev/1681140c9ccb

(Includes the comment update)
Attachment #393190 - Attachment description: v1 (2) [Checkin comment 4] → v1 (2) [Checkin comment 4,5]
Keywords: fixed1.9.2
Whiteboard: [T.M.=mozilla-1.9.3]
Target Milestone: --- → mozilla1.9.3a1
Keywords: fixed1.9.1
Depends on: 522684
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: