TimeoutDisconnect Details

Options
Jormungandr
edited September 2012 in Photon Server
In the latest version of the server SDK, a disconnect reason and details string was added to the OnDisconnect callback. This is great, but now I'm trying to actually interpret some of the strings I see come out of that detailed reason string.

The particular case I'm interested in is TimeoutDisconnect, which is followed by many lines of output containing seven numbers separated by hyphens. What do these actually mean? Example:
44 - 135 - 117 - 10 - 7017470 - 7017580 - 110
45 - 134 - 117 - 11 - 7016316 - 7016425 - 109
46 - 133 - 118 - 11 - 7015146 - 7015255 - 109
47 - 132 - 119 - 11 - 7013992 - 7014132 - 140
48 - 131 - 116 - 7 - 7012853 - 7012962 - 109
49 - 130 - 117 - 7 - 7011698 - 7011808 - 110

Comments

  • Philip
    Options
    This is what we call the rtt-history, which holds the following vaues of the last 50 enet commands:

    - index (0...49, where 0 is latest and 49 is oldest)
    - rtt (current rtt in ms ... after processing the cmd ack or timeout)
    - variance (current variance in ms)
    - cmd_sentTime (time where command was sent)
    - cmd_recvTime (time where ack was recieved)
    - cmd_rtt (sent - recv time in ms)

    If you see something like like this - it means there where only 22 acks:
    ...
    20 - 2620 - 3191 - 753016 - 762158 - 9142
    21 - 1689 - 2081 - 752143 - 762158 - 10015 <<<< first ack
    22 - 500 - 0 - 0 - 0 - 0 <<<< initial values

    In the following case you see that the client went from a rrt between 78 and 203 and get disconnected after a timeout of 11 seconds:

    index - rtt - variance - sentTime - recvTime - cmd_rtt
    0 - 326 - 0 - 0 - 830717056 - 830728351 - 11295
    1 - 325 - 89 - 19 - 830715918 - 830716042 - 124
    2 - 324 - 85 - 14 - 830714826 - 830714904 - 78
    3 - 323 - 86 - 17 - 830712751 - 830712813 - 62
    4 - 322 - 89 - 14 - 830711659 - 830711737 - 78
    5 - 321 - 90 - 16 - 830710551 - 830710645 - 94
    6 - 320 - 90 - 19 - 830709428 - 830709537 - 109
    7 - 319 - 88 - 19 - 830708320 - 830708414 - 94
    8 - 318 - 88 - 23 - 830707197 - 830707306 - 109
    9 - 317 - 86 - 24 - 830706105 - 830706183 - 78
    10 - 316 - 87 - 29 - 830704701 - 830704763 - 62
    11 - 315 - 90 - 30 - 830703531 - 830703640 - 109
    12 - 314 - 88 - 34 - 830702439 - 830702517 - 78
    13 - 313 - 89 - 42 - 830701363 - 830701425 - 62
    14 - 312 - 92 - 47 - 830700302 - 830700349 - 47
    15 - 312 - 98 - 48 - 830700099 - 830700302 - 203
    16 - 311 - 83 - 29 - 830699023 - 830699085 - 62
    17 - 310 - 86 - 32 - 830697915 - 830698009 - 94
    18 - 309 - 85 - 39 - 830696761 - 830696901 - 140
    19 - 308 - 78 - 34 - 830695622 - 830695747 - 125
    20 - 307 - 72 - 30 - 830694561 - 830694608 - 47
    21 - 306 - 75 - 32 - 830693516 - 830693547 - 31
    22 - 305 - 81 - 28 - 830692393 - 830692502 - 109
    23 - 304 - 77 - 27 - 830691332 - 830691379 - 47
    24 - 303 - 81 - 26 - 830690255 - 830690318 - 63
    25 - 302 - 83 - 29 - 830689163 - 830689241 - 78
    26 - 301 - 83 - 37 - 830688087 - 830688149 - 62
    27 - 300 - 86 - 42 - 830686886 - 830687073 - 187
    28 - 299 - 72 - 22 - 830685809 - 830685872 - 63
    29 - 298 - 73 - 26 - 830684733 - 830684780 - 47
    30 - 297 - 76 - 26 - 830683688 - 830683719 - 31
    31 - 296 - 82 - 19 - 830682596 - 830682674 - 78
    32 - 295 - 82 - 24 - 830681519 - 830681582 - 63
    33 - 294 - 84 - 26 - 830680427 - 830680490 - 63
    34 - 293 - 86 - 28 - 830679335 - 830679413 - 78
    35 - 292 - 87 - 34 - 830678243 - 830678321 - 78
    36 - 291 - 88 - 42 - 830677058 - 830677229 - 171
    37 - 290 - 77 - 29 - 830675981 - 830676044 - 63
    38 - 289 - 79 - 34 - 830674936 - 830674967 - 31
    39 - 288 - 85 - 29 - 830673828 - 830673922 - 94
    40 - 287 - 84 - 36 - 830672674 - 830672814 - 140
    41 - 286 - 77 - 29 - 830671566 - 830671660 - 94
    42 - 285 - 75 - 33 - 830670506 - 830670552 - 46
    43 - 284 - 79 - 34 - 830669445 - 830669492 - 47
    44 - 283 - 83 - 34 - 830668259 - 830668431 - 172
    45 - 282 - 71 - 16 - 830667152 - 830667230 - 78
    46 - 281 - 71 - 19 - 830666044 - 830666138 - 94
    47 - 1720 - 68 - 18 - 830663985 - 830664032 - 47
    48 - 1719 - 71 - 17 - 830663860 - 830663954 - 94
    49 - 280 - 68 - 15 - 830663688 - 830663766 - 78