Ticket #124 (new enhancement)

Opened 1 week ago

Last modified 3 days ago

Modified LineAndTextProtocol to accept custom delimiters in the constructor

Reported by: cremes Assigned to:
Priority: minor Milestone: EventMachine "Framework"
Keywords: protocol delimiter Cc:

Description

LineAndTextProtocol? had a hardcoded delimiter of "\n" (newline). Made a small modification to its constructor so it can accept a custom delimiter passed in a hash with key :delimiter.

Please pull the changes from my github fork (chuckremes/eventmachine).

Change History

05/08/09 19:58:02 changed by cremes

Oh, and I included a test for it too.

05/14/09 23:44:30 changed by cremes

Corrected the patch so that newlines "\n" are retained when the delimiter is different. The original behavior *always* stripped newlines which may not be correct behavior even in a line and text protocol when overriding the delimiter.

Included a test case as well.