- fixes from Paul Driver: can_read doesn't behave correctly. The
docs say it returns true iff there's a frame waiting to be
read, but it's just a select() call to see if there's data
on the socket, which can return both false positives and
false negatives. While investigating this, I noticed that
Net::Stomp::Frame->parse was modified at some point to take
a socket as its argument. This is inconsistent with docs and
probably not what was wanted anyway. parse and as_string
should be symmetrical. Attached is a patch that fixes both
issues and adds tests for them.