@@ -2758,8 +2758,8 @@ public void handleException(TransportException exp) {
27582758 TransportStats transportStats = serviceC .transport .getStats (); // we did a single round-trip to do the initial handshake
27592759 assertEquals (1 , transportStats .getRxCount ());
27602760 assertEquals (1 , transportStats .getTxCount ());
2761- assertEquals (29 , transportStats .getRxSize ().getBytes ());
2762- assertEquals (55 , transportStats .getTxSize ().getBytes ());
2761+ assertEquals (35 , transportStats .getRxSize ().getBytes ());
2762+ assertEquals (60 , transportStats .getTxSize ().getBytes ());
27632763 });
27642764 serviceC .sendRequest (
27652765 connection ,
@@ -2773,16 +2773,16 @@ public void handleException(TransportException exp) {
27732773 TransportStats transportStats = serviceC .transport .getStats (); // request has been send
27742774 assertEquals (1 , transportStats .getRxCount ());
27752775 assertEquals (2 , transportStats .getTxCount ());
2776- assertEquals (29 , transportStats .getRxSize ().getBytes ());
2777- assertEquals (114 , transportStats .getTxSize ().getBytes ());
2776+ assertEquals (35 , transportStats .getRxSize ().getBytes ());
2777+ assertEquals (119 , transportStats .getTxSize ().getBytes ());
27782778 });
27792779 sendResponseLatch .countDown ();
27802780 responseLatch .await ();
27812781 stats = serviceC .transport .getStats (); // response has been received
27822782 assertEquals (2 , stats .getRxCount ());
27832783 assertEquals (2 , stats .getTxCount ());
2784- assertEquals (54 , stats .getRxSize ().getBytes ());
2785- assertEquals (114 , stats .getTxSize ().getBytes ());
2784+ assertEquals (60 , stats .getRxSize ().getBytes ());
2785+ assertEquals (119 , stats .getTxSize ().getBytes ());
27862786 } finally {
27872787 serviceC .close ();
27882788 }
@@ -2873,8 +2873,8 @@ public void handleException(TransportException exp) {
28732873 TransportStats transportStats = serviceC .transport .getStats (); // request has been sent
28742874 assertEquals (1 , transportStats .getRxCount ());
28752875 assertEquals (1 , transportStats .getTxCount ());
2876- assertEquals (29 , transportStats .getRxSize ().getBytes ());
2877- assertEquals (55 , transportStats .getTxSize ().getBytes ());
2876+ assertEquals (35 , transportStats .getRxSize ().getBytes ());
2877+ assertEquals (60 , transportStats .getTxSize ().getBytes ());
28782878 });
28792879 serviceC .sendRequest (
28802880 connection ,
@@ -2888,8 +2888,8 @@ public void handleException(TransportException exp) {
28882888 TransportStats transportStats = serviceC .transport .getStats (); // request has been sent
28892889 assertEquals (1 , transportStats .getRxCount ());
28902890 assertEquals (2 , transportStats .getTxCount ());
2891- assertEquals (29 , transportStats .getRxSize ().getBytes ());
2892- assertEquals (114 , transportStats .getTxSize ().getBytes ());
2891+ assertEquals (35 , transportStats .getRxSize ().getBytes ());
2892+ assertEquals (119 , transportStats .getTxSize ().getBytes ());
28932893 });
28942894 sendResponseLatch .countDown ();
28952895 responseLatch .await ();
@@ -2904,8 +2904,8 @@ public void handleException(TransportException exp) {
29042904 String failedMessage = "Unexpected read bytes size. The transport exception that was received=" + exception ;
29052905 // 57 bytes are the non-exception message bytes that have been received. It should include the initial
29062906 // handshake message and the header, version, etc bytes in the exception message.
2907- assertEquals (failedMessage , 57 + streamOutput .bytes ().length (), stats .getRxSize ().getBytes ());
2908- assertEquals (114 , stats .getTxSize ().getBytes ());
2907+ assertEquals (failedMessage , 63 + streamOutput .bytes ().length (), stats .getRxSize ().getBytes ());
2908+ assertEquals (119 , stats .getTxSize ().getBytes ());
29092909 } finally {
29102910 serviceC .close ();
29112911 }
0 commit comments