Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1103 committed - Merged Issue150 branch into trunk

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1103 committed - Merged Issue150 branch into trunk


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1103 committed - Merged Issue150 branch into trunk
  • Date: Fri, 20 Jun 2014 08:55:14 +0000

Revision: 1103
Author:

Date: Fri Jun 20 08:55:01 2014 UTC
Log: Merged Issue150 branch into trunk

http://code.google.com/p/ndt/source/detail?r=1103

Modified:
/trunk
/trunk/flash-client/src/TestC2S.as
/trunk/flash-client/src/TestMETA.as
/trunk/flash-client/src/TestS2C.as

=======================================
--- /trunk/flash-client/src/TestC2S.as Wed Jun 18 07:06:05 2014 UTC
+++ /trunk/flash-client/src/TestC2S.as Fri Jun 20 08:55:01 2014 UTC
@@ -280,12 +280,16 @@
if (!_msg.readHeader(_ctlSocket))
return;
_testStage = START_TEST2;
- if (_ctlSocket.bytesAvailable > 0)
+ if ( (!_msg.length) || (_ctlSocket.bytesAvailable > 0) ) {
// In case header and body have arrive together at the client, they
// trigger a single ProgressEvent.SOCKET_DATA event. In such case,
// it's necessary to explicitly call the following function to move to
// the next step.
+
+ // This case also handles non-extended login TEST_START messages
+ // that have a 0-length body.
startTest2();
+ }
}

private function startTest2():void {
=======================================
--- /trunk/flash-client/src/TestMETA.as Wed Jun 18 07:06:05 2014 UTC
+++ /trunk/flash-client/src/TestMETA.as Fri Jun 20 08:55:01 2014 UTC
@@ -150,12 +150,16 @@
if (!_msg.readHeader(_ctlSocket))
return;
_testStage = START_TEST2;
- if (_ctlSocket.bytesAvailable > 0)
+ if ( (!_msg.length) || (_ctlSocket.bytesAvailable > 0) ) {
// In case header and body have arrive together at the client, they
// trigger a single ProgressEvent.SOCKET_DATA event. In such case,
// it's necessary to explicitly call the following function to move to
// the next step.
+
+ // This case also handles non-extended login TEST_START messages
+ // that have a 0-length body.
startTest2();
+ }
}

private function startTest2():void {
=======================================
--- /trunk/flash-client/src/TestS2C.as Wed Jun 18 07:06:05 2014 UTC
+++ /trunk/flash-client/src/TestS2C.as Fri Jun 20 08:55:01 2014 UTC
@@ -256,12 +256,16 @@
if (!_msg.readHeader(_ctlSocket))
return;
_testStage = START_TEST2;
- if (_ctlSocket.bytesAvailable > 0)
+ if ( (!_msg.length) || (_ctlSocket.bytesAvailable > 0) ) {
// In case header and body have arrive together at the client, they
// trigger a single ProgressEvent.SOCKET_DATA event. In such case,
// it's necessary to explicitly call the following function to move to
// the next step.
+
+ // This case also handles non-extended login TEST_START messages
+ // that have a 0-length body.
startTest2();
+ }
}

private function startTest2():void {


  • [ndt-dev] [ndt] r1103 committed - Merged Issue150 branch into trunk, ndt, 06/20/2014

Archive powered by MHonArc 2.6.16.

Top of Page