Skip to content

Instantly share code, notes, and snippets.

@mmower
Created June 21, 2011 11:16
Show Gist options
  • Select an option

  • Save mmower/1037645 to your computer and use it in GitHub Desktop.

Select an option

Save mmower/1037645 to your computer and use it in GitHub Desktop.
#code
pp @buffer
puts @buffer.size
puts "LASTCHAR = #{@buffer[len].inspect} (#{@buffer[len] == 0.chr})"
raise RuntimeError.new("Invalid stompframe (missing null term)") unless @buffer[len] == 0.chr
#output
"\000"
1
LASTCHAR = 0 (false)
err: Invalid stompframe (missing null term) ./lib/stomp_server/stomp_frame.rb:44:in `parse_body'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment