-
Notifications
You must be signed in to change notification settings - Fork 47
Conversation
I feel like I've been through this before ;). Let me stew on it, drag up old commits/tweets/emails with the STOMP guys (whom I talked to about this because it wasn't officially in the spec). |
I think in the specs, the docs said, its "OPTIONAL" to send LF after a NULL. My problem is im dealing with another stomp based server that doesnt like But at the very very least, the frame decoder SHOULD handle the case of a The Perl version I have used doesn't send these LFs. Personally, i think a server should be smart and deal with all Raul On Fri, Sep 30, 2011 at 12:50 AM, Benjamin W. Smith <
-Raul Sobon raul.sobon@ac3dec.com or raul.sobon@gmail.com |
Fair enough. Ill review and likely merge it in tomorrow and push it to npm provided it doesn't break anything else :). |
I know the perl one doesnt do it, and I vagely remember that had same issue If there is a fundemental reason for it, id like to know. firewall/switch Raul On Fri, Sep 30, 2011 at 2:09 PM, Benjamin W. Smith <
-Raul Sobon raul.sobon@ac3dec.com or raul.sobon@gmail.com |
Now I am only having one problem with this here, it looks like the last NULL But if run locally (ie on our work network, no public internet), it works. I am not sure if its our server which uses openssl 1.0.0 , or if its NODEJS on CF.com is still 0.4.5, and im running 0.4.12 locally here. All debugs look sound, saying sent N bytes, same here as over in usa. Sending NULL,\N means we only see NULL, and not \N from usa. But do see \N If you have a cloudfoundry.com account, try it from there via SSL talking to Any way, going to do more analysis of this, its really really weird!!! On Fri, Sep 30, 2011 at 2:09 PM, Benjamin W. Smith <
-Raul Sobon raul.sobon@ac3dec.com or raul.sobon@gmail.com |
Oh that stinks! Let me know what you find out about that. |
One question, when an SSL server 'dies' or is torn down, or loses comms, I How is this trapable? So we can retry a reconnect in 30 seconds. Cheers On Fri, Sep 30, 2011 at 11:39 PM, Benjamin W. Smith <
-Raul Sobon raul.sobon@ac3dec.com or raul.sobon@gmail.com |
I'm sure it can be trapped. I will see if I can trap it and emit an error to catch. |
Another feature to add, is a flag or setting so you can auto defined Cheers On Tue, Oct 4, 2011 at 1:00 AM, Benjamin W. Smith <
-Raul Sobon raul.sobon@ac3dec.com or raul.sobon@gmail.com |
I'm going to go ahead and merge this in. I've tested things, looks good. |
Handle frames with just NULL delim
I made my tiny changes to handle the case of servers that send messages properly without a LF after the NULL at the of a frame.