[Bug 13794] New: I think length-prefixed messages would be a lot more useful than line-delimited messages. Sentinel terminators, especially newlines, are more error prone to generate and parse than a few bytes of length prefix followed by a message, repeat. In addition, t

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13794

           Summary: I think length-prefixed messages would be a lot more
                    useful than line-delimited messages. Sentinel
                    terminators, especially newlines, are more error prone
                    to generate and parse than a few bytes of length
                    prefix followed by a message, repeat. In addition, t
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Server-Sent Events (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
I think length-prefixed messages would be a lot more useful than
line-delimited messages. Sentinel terminators, especially newlines, are more
error prone to generate and parse than a few bytes of length prefix followed
by a message, repeat.

In addition, the ability to send blobs with newlines is a big win in terms of
the messages that are easily able to be sent across the transport, as well as
giving the developer the ability to improve the readability of the protocol
which is being sent over the wire, as examined in a packet sniffer.

Donovan Preston

Posted from: 63.235.13.3
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0a1)
Gecko/20110815 Firefox/8.0a1

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 16 August 2011 15:53:58 UTC