Rocweb and Firefox reserved opcodes

All about the Rocrail WEB solution.

Rocweb and Firefox reserved opcodes

Postby rjversluis » 04.06.2015, 17:08

Hi,

some browsers like Firefox sends Websocket frames with opcode 3 which is reserved and should not be used:
http://tools.ietf.org/html/rfc6455#section-11.8
Code: Select all
3-7 are reserved for further non-control frames

If a frame comes in with a reserved opcode Rocrail do not know how to handle it and will disconnect the connection.

If someone is reading this forum, and know how to handle it; Please report.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Rocweb and Firefox reserved opcodes

Postby smitt48 » 04.06.2015, 18:16

Hi Rob,

I sent an e-mail to one of the authors (last e-mail address) in the document. Maybe I will hear something.

Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.3) - Win10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: Rocweb and Firefox reserved opcodes

Postby rjversluis » 04.06.2015, 18:23

Thanks Tom.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Rocweb and Firefox reserved opcodes

Postby smitt48 » 04.06.2015, 18:53

Hi Rob,

I found something!? http://www.ietf.org/proceedings/80/slides/hybi-2.pdf
Framing (6)
Opcodes
• 0x0 Continuation frame
• 0x1 Connection close
• 0x2 Ping
• 0x3 Pong
• 0x4 Text frame
• 0x5 Binary frame
• 0x7-0xF Reserved

Don''t know what Pong is, but maybe you do!
"MUST reply with pong control with the same payload as received ping"

Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.3) - Win10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: Rocweb and Firefox reserved opcodes

Postby rjversluis » 04.06.2015, 19:19

Hi Tom,

your listing is not the official one:

Code: Select all
      *  %x0 denotes a continuation frame
      *  %x1 denotes a text frame
      *  %x2 denotes a binary frame
      *  %x3-7 are reserved for further non-control frames
      *  %x8 denotes a connection close
      *  %x9 denotes a ping
      *  %xA denotes a pong
      *  %xB-F are reserved for further control frames

http://tools.ietf.org/html/rfc6455#section-5.2
https://developer.mozilla.org/de/docs/W ... ers#Format
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Rocweb and Firefox reserved opcodes

Postby rjversluis » 08.06.2015, 13:18

Hi Tom,

after a close click on FF the opcode 3 will come:
Code: Select all
20150608.141709.783 r0000I phts62E5 OHttp    *trace dump( 0x62BB2C90: length=2 )
    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: 03 E9                                           |..              |
20150608.141709.783 r9999I phts62E5 OHttp    0247 shutdown Rocweb [62F913B0] unexpected opcode 0X03
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Rocweb and Firefox reserved opcodes

Postby smitt48 » 08.06.2015, 14:48

hi Rob,

Information has been passed on.

How do you close your browser?? :cry:

tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.3) - Win10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: Rocweb and Firefox reserved opcodes

Postby rjversluis » 08.06.2015, 16:23

smitt48 wrote:How do you close your browser?? :cry:

just click on the X.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Rocweb and Firefox reserved opcodes

Postby smitt48 » 08.06.2015, 17:12

Hi Rob,

just click on the X.


I do that and lately it terminates gently.

Tom
Kind regards,
Tom Smit
Kralendijk, Bonaire - Dutch Caribbean

Märklin M & K-rails with ECoS2 (4.2.3) - Win10
RoSoft: S88n & WDD switch & SDD signal decoders
Display: Tri-ang from 1950's, Märklin from early 1960's
In build phase
smitt48
 

Re: Rocweb and Firefox reserved opcodes

Postby rjversluis » 08.06.2015, 17:19

Maybe the opcode 3 is region dependent.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 


Return to Rocweb