Module: EventMachine::Protocols::LineText2
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/em/protocols/linetext2.rb |
Overview
In the grand, time-honored tradition of re-inventing the wheel, we offer
here YET ANOTHER protocol that handles line-oriented data with interspersed
binary text. This one trades away some of the performance optimizations of
EventMachine::Protocols::LineAndTextProtocol in order to get better correctness
with regard to binary text blocks that can switch back to line mode. It also
permits the line-delimiter to change in midstream.
This was originally written to support Stomp
.
Constant Summary
-
MaxBinaryLength =
TODO! We're not enforcing the limits on header lengths and text-lengths. When we get around to that, call #receive_error if the user defined it, otherwise throw exceptions.
32*1024*1024