View Revisions: Issue #5708

Summary 0005708: Multiple lines (\r\n) in single websocket frame with labeled-response
Revision 2020-06-12 17:56 by syzop
Description The first three replies are sent in a single frame when using websocket (this seems to happen on every BATCH, for example replies for HISTORY and WHOIS commands).

← @label=xxx history #testtest

In a single packet:
→ @label=xxx :test3.pirc.pl BATCH +PbZCD0QZGMMHQwa7KU5Y4V labeled-response
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH +2CrEHYl23nQnHSS4KOolGT chathistory #testtest
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V;batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:03.465Z;msgid=i5gz6M8Qw0hWThWnCyJQFa :k4be!testowy@127.0.0.1 PRIVMSG #testtest :7

Then the rest (every line in their own packet):
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:05.306Z;msgid=n9AFDtvL1QSpclJltL9WX9 :k4be!testowy@127.0.0.1 PRIVMSG #testtest :8
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:07.204Z;msgid=mvIN1kI7vzGbFSNhPFpsIU :k4be!testowy@127.0.0.1 PRIVMSG #testtest :9
...
Revision 2020-06-12 17:48 by k4be
Description The first three replies are sent in a single frame when using websocket (this seems to happen on every BATCH, for example replies for HISTORY and WHOIS commands).

← @label=xxx history #testtest
→ @label=xxx :test3.pirc.pl BATCH +PbZCD0QZGMMHQwa7KU5Y4V labeled-response
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH +2CrEHYl23nQnHSS4KOolGT chathistory #testtest
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V;batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:03.465Z;msgid=i5gz6M8Qw0hWThWnCyJQFa :k4be!testowy@127.0.0.1 PRIVMSG #testtest :7
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:05.306Z;msgid=n9AFDtvL1QSpclJltL9WX9 :k4be!testowy@127.0.0.1 PRIVMSG #testtest :8
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:07.204Z;msgid=mvIN1kI7vzGbFSNhPFpsIU :k4be!testowy@127.0.0.1 PRIVMSG #testtest :9
[CUT]
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:03.058Z;msgid=hB4gDSv82uoLYgbLXcqZkq :k4be!testowy@127.0.0.1 PRIVMSG #testtest :y
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:05.062Z;msgid=UbcH5fYYaJV2qpQORjuxCe :k4be!testowy@127.0.0.1 PRIVMSG #testtest :z
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH -2CrEHYl23nQnHSS4KOolGT
→ :test3.pirc.pl BATCH -PbZCD0QZGMMHQwa7KU5Y4V
Revision 2020-06-12 17:45 by syzop
Description The first three replies are sent in a single frame when using websocket (this seems to happen on every BATCH, for example replies for HISTORY and WHOIS commands).

<code>← @label=xxx history #testtest
→ @label=xxx :test3.pirc.pl BATCH +PbZCD0QZGMMHQwa7KU5Y4V labeled-response
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH +2CrEHYl23nQnHSS4KOolGT chathistory #testtest
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V;batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:03.465Z;msgid=i5gz6M8Qw0hWThWnCyJQFa :k4be!testowy@127.0.0.1 PRIVMSG #testtest :7
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:05.306Z;msgid=n9AFDtvL1QSpclJltL9WX9 :k4be!testowy@127.0.0.1 PRIVMSG #testtest :8
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:07.204Z;msgid=mvIN1kI7vzGbFSNhPFpsIU :k4be!testowy@127.0.0.1 PRIVMSG #testtest :9
[CUT]
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:03.058Z;msgid=hB4gDSv82uoLYgbLXcqZkq :k4be!testowy@127.0.0.1 PRIVMSG #testtest :y
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:05.062Z;msgid=UbcH5fYYaJV2qpQORjuxCe :k4be!testowy@127.0.0.1 PRIVMSG #testtest :z
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH -2CrEHYl23nQnHSS4KOolGT
→ :test3.pirc.pl BATCH -PbZCD0QZGMMHQwa7KU5Y4V</code>
Revision 2020-06-12 17:40 by k4be
Description 1. The third reply specifies two values of `batch` tag (i can trigger it only using HISTORY command).
2. The first three replies are sent in a single frame when using websocket (this seems to happen on every BATCH, for example replies for HISTORY and WHOIS commands).
3. Is the double BATCH behaviour correct at all? It's unclear to me.

<code>← @label=xxx history #testtest
→ @label=xxx :test3.pirc.pl BATCH +PbZCD0QZGMMHQwa7KU5Y4V labeled-response
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH +2CrEHYl23nQnHSS4KOolGT chathistory #testtest
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V;batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:03.465Z;msgid=i5gz6M8Qw0hWThWnCyJQFa :k4be!testowy@127.0.0.1 PRIVMSG #testtest :7
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:05.306Z;msgid=n9AFDtvL1QSpclJltL9WX9 :k4be!testowy@127.0.0.1 PRIVMSG #testtest :8
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:07.204Z;msgid=mvIN1kI7vzGbFSNhPFpsIU :k4be!testowy@127.0.0.1 PRIVMSG #testtest :9
[CUT]
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:03.058Z;msgid=hB4gDSv82uoLYgbLXcqZkq :k4be!testowy@127.0.0.1 PRIVMSG #testtest :y
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:05.062Z;msgid=UbcH5fYYaJV2qpQORjuxCe :k4be!testowy@127.0.0.1 PRIVMSG #testtest :z
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH -2CrEHYl23nQnHSS4KOolGT
→ :test3.pirc.pl BATCH -PbZCD0QZGMMHQwa7KU5Y4V</code>
Revision 2020-06-12 17:38 by k4be
Description 1. The third reply specifies two values of `batch` tag (i can trigger it only using HISTORY command).
2. The first three replies are sent in a single frame when using websocket (this seems to happen on every BATCH, for example replies for HISTORY and WHOIS commands).
3. Is the double BATCH behaviour correct at all? It's unclear to me.

```
← @label=xxx history #testtest
→ @label=xxx :test3.pirc.pl BATCH +PbZCD0QZGMMHQwa7KU5Y4V labeled-response
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH +2CrEHYl23nQnHSS4KOolGT chathistory #testtest
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V;batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:03.465Z;msgid=i5gz6M8Qw0hWThWnCyJQFa :k4be!testowy@127.0.0.1 PRIVMSG #testtest :7
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:05.306Z;msgid=n9AFDtvL1QSpclJltL9WX9 :k4be!testowy@127.0.0.1 PRIVMSG #testtest :8
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:56:07.204Z;msgid=mvIN1kI7vzGbFSNhPFpsIU :k4be!testowy@127.0.0.1 PRIVMSG #testtest :9
[CUT]
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:03.058Z;msgid=hB4gDSv82uoLYgbLXcqZkq :k4be!testowy@127.0.0.1 PRIVMSG #testtest :y
→ @batch=2CrEHYl23nQnHSS4KOolGT;time=2020-06-12T13:57:05.062Z;msgid=UbcH5fYYaJV2qpQORjuxCe :k4be!testowy@127.0.0.1 PRIVMSG #testtest :z
→ @batch=PbZCD0QZGMMHQwa7KU5Y4V :test3.pirc.pl BATCH -2CrEHYl23nQnHSS4KOolGT
→ :test3.pirc.pl BATCH -PbZCD0QZGMMHQwa7KU5Y4V
```