kennethlakin / jsircconnect

Javascript IRC connection. Needs some work.
0 stars 3 forks source link

chrome.socket.read sometimes doesn't provide an entire line #5

Open kennethlakin opened 11 years ago

kennethlakin commented 11 years ago

This sucks. Sometimes a read doesn't contain a whole line. We'll need to squirrel away the data that's not an entire line and join it with new, incoming data.

(When interpreting this spew, remember that we write the date that we rx a blob of data, then follow it with the blob of data.)

:wright.freenode.net 372 LakinBot :- By connecting to freenode you indicate that you have read
:wright.freenode.net 372 LakinBot :- and agree to adhere to our policies and procedures as per
:wright.freenode.net 372 LakinBot :- t 
Wed Mar 13 2013 16:51:07 GMT-0700 (PDT)he website (http://freenode.net). We would like to remind
:wright.freenode.net 372 LakinBot :- you that unauthorized public logging of channels on the
:wright.freenode.net 372 LakinBot :- network is prohibited. Public channel logging should only
:wright.freenode.net 372 LakinBot :- take place where the channel owner(s) has requested this
:wright.freenode.net 372 LakinBot :- and users of the channel are all made aware (if you are
:wright.freenode.net 372 LakinBot :- publically logging your channel, you may wish to keep a
:wright.freenode.net 372 LakinBot :- notice in topic and perhaps as a on-join message).
:wright.freenode.net 372 LakinBot :-  
:wright.freenode.net 372 LakinBot :- freenode runs an open proxy scanner. Your use of the network
:wright.freenode.net 372 LakinBot :- indicates your acceptance of this policy. For details on
:wright.freenode.net 372 LakinBot :- freenode network policy, please take a look at our policy
:wright.freenode.net 372 LakinBot :- page (http://freenode.net/policy.shtml). Thank you for using
:wright.freenode.net 372 LakinBot :- the network!
:wright.freenode.net 372 LakinBot :-  
:wright.freenode.net 372 LakinBot :- Don't forget to check out these other Peer-Directed Projects:
:wright.freenode.net 372 LakinBot :- FOSSCON [http://www.fosscon.org] and fossevents 
:wright.freenode.net 372 LakinBot :- [http://www.fosseve 
Wed Mar 13 2013 16:51:07 GMT-0700 (PDT)nts.org], and soon we'll repeat last years 
:wright.freenode.net 372 LakinBot :- success with Picnics for Geeks across the globe, more info at 
:wright.freenode.net 372 LakinBot :- [http://geeknic.org]
kennethlakin commented 11 years ago

Now we need to merge this fix into master