0 Replies Latest reply on Jul 21, 2009 7:18 AM by obourdon38

    Potential issue with URLRequest and events on MacOS platform

    obourdon38

      I have a problem using URLRequest and events but only on MacOS platform

      tried the exact same air file and perl examples on Linux (Fedora) and they work perfectly well

      as well as on Windows

       

      The perl client program require active perl 5.10 from ActiveState

      ActivePerl-5.10.0.1005-darwin-9.6.0-290470.dmg

       

      the source of my examples can be found at

      EventPb.tgz

      or attached to this message

       

      to verify that everything is fine on your system just launch the perl server and client in another window

       

      perl EventTestServer.pl

       

      Entering server loop

      Waiting on 0.0.0.0:7788

       

      New connection received on 127.0.0.1 from 127.0.0.1

      IO::Socket::INET=GLOB(0x86136c) GOT GET /test/1 HTTP/1.1

      Answering to 1

      Flushing to 1

      Done to 1

      New connection received on 127.0.0.1 from 127.0.0.1

      IO::Socket::INET=GLOB(0x861360) GOT GET /test/10 HTTP/1.1

      Answering to 10

      Flushing to 10

      Done to 10

      ^C

      ============================================================== END OF SERVER

      /usr/local/ActivePerl-5.10/bin/perl EventTestClients.pl

      Launching client 1 (1)

      Sending data

      Received  <HTTP/1.1 200 OK

      Date: Tue, 21 Jul 2009 09:23:09 GMT

      Last-modified: Mon, 20 Jul 2009 09:18:11 GMT

      Content-type: application/xml

      Etag: "fb19761e968628212bba247d056fad4e"

      Transfer-encoding: chunked

       

      >

      End of conversation

      Closing connection

      Launching client 10 (1)

      Current: 2 Running: 1 Joinable: 1

      Sending data

      Received  <HTTP/1.1 200 OK

      Date: Tue, 21 Jul 2009 09:23:09 GMT

      Last-modified: Mon, 20 Jul 2009 09:18:11 GMT

      Content-type: application/xml

      Etag: "fb19761e968628212bba247d056fad4e"

      Transfer-encoding: chunked

       

      >

      End of conversation

      Closing connection

      Ending threads=SCALAR(0x81bbc0) > 1

      Current: 1 Running: 0 Joinable: 1

      Ending threads=SCALAR(0x82d610) > 1

      All done

      ============================================================== END OF CLIENT
      let the server run an use the Flex code and click on the ok button
      as soon as the server closes the connection the Flex application runs into trapped error:

      [URLRequestBuilder] Open: [Event type="open" bubbles=false cancelable=false eventPhase=2]

      [URLRequestBuilder] ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:7788/test/Y" errorID=2032]

      [YDelegate] Return code is: -1

      [EdiXCommand] Fault Y Return code is: -1

      setErrorMsg

      tracing of network packets using WireShark shows that the 200 OK HTTP response has been sent but not received by the
      URL Flex code
      Once again on another platform this runs fine and the flex trace I get is on linux:
      more ~/.macromedia/Flash_Player/Logs/flashlog.txt
      [MyFrontController]: new
      [MyFrontController]: init
      [MAIN]: init
      [MAIN]: clicked on item
      [EditXEvent]: new
      [EditXCommand] new
      [EditXCommand] User wishes to edit X
      [URLRequestBuilder] CONSTRUCTOR
      [URLRequestBuilder] contentType
      [URLRequestBuilder] uri
      [URLRequestBuilder] getRootURL
      [URLRequestBuilder] method
      [YDelegate] Sending request: Y
      [URLRequestBuilder] send
      [URLRequestBuilder] Open: [Event type="open" bubbles=false cancelable=false eventPhase=2]
      [URLRequestBuilder] return code: 200
      [URLRequestBuilder] response headers:
      [URLRequestBuilder] HEADER => Date : Tue, 21 Jul 2009 09:23:09 GMT
      [URLRequestBuilder] HEADER => Last-modified : Mon, 20 Jul 2009 09:18:11 GMT
      [URLRequestBuilder] HEADER => Content-type : application/xml
      [URLRequestBuilder] HEADER => Etag : "fb19761e968628212bba247d056fad4e"
      [URLRequestBuilder] HEADER => Transfer-encoding : chunked
      [YDelegate] Return code is: 200
      [YDelegate] SUCCESS code is: 200
      [EditXCommand] Y Received
      Note also that the perl programs run perfectly indentically on Linux and MacOS therefore eliminating the potentiality of TCP
      implementation errors
      Thanks for any help