Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: STOMP-7
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dejan Bosanac
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forge: Stomp

Failing to disconnect can exhaust AMQ descriptors

Created: 04/Feb/10 08:55 AM   Updated: 04/Feb/10 08:57 AM
Component/s: php
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. Text File stomp-disconnect.patch (1 kB)



 Description  « Hide
ActiveMQ ran out of file descriptors, was accepting socket connections, but could not accept any incoming data. This put the client into a loop where it tried to:
  • do a graceful disconnect
  • that failed (fwrite raising a PHP notice)
  • try to reconnect
  • do a graceful disconnect
  • that failed (fwrite raising a PHP notice)
  • try to reconnect
  • do a graceful disconnect
  • that failed (fwrite raising a PHP notice)
  • ....

If the loop wasn't bad enough, the PHP notices raised overwhelmed my database recording the errors.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Dejan Bosanac added a comment - 04/Feb/10 08:57 AM
Patch that solves this issue by blocking a reconnect attempt should a graceful disconnect fail, as well as suppressing the PHP notice on the fwrite.

Dejan Bosanac made changes - 04/Feb/10 08:57 AM
Field Original Value New Value
Attachment stomp-disconnect.patch [ 16118 ]