[jira] Created: (STOMP-1) Infinite loop for null message body

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (STOMP-1) Infinite loop for null message body

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Infinite loop for null message body
-----------------------------------

                 Key: STOMP-1
                 URL: http://jira.codehaus.org/browse/STOMP-1
             Project: Stomp
          Issue Type: Bug
         Environment: Ruby 1.8.5, stomp 1.0.5
            Reporter: Dennis Byrne
         Attachments: loop.txt

Stomp._transmit calls body.length, which throws an exception when the body is nil.  The exception is caught inside transmit, which calls _transmit again from w/in a rescue block.  This creates a lot of sockets and hammers the shit out of the broker (I get OutOfMemoryError in activeMQ).  I feel 0 is good for nil messages, let me know if you think the message shouldn't be sent and I'll change the patch or write a test.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email