ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Transport APIs - Unable to Receive response

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transport APIs - Unable to Receive response

    Hi there,

    I'm semi-successfully (!) using the axis Transport APIs, but I'm seeing some intermittent behaviour that's causing me problems. When using axiscTransportReceive() to read back the HTTP response directly after an axiscTransportFlush(), I'm sometimes getting a value of -1, even though I know that the request was successfully and there is data to receive (the transport trace logs tell me this).

    Looking at the trace logs, I'm seeing the following:

    09/05/2017 13:32:01:650 00000721 transport X HTTPTransport::getNextDataPacket(): Line=2184: File=/build/axiscpp/src/ws-axis/c/sr
    HTTPTransportException - SERVER_TRANSPORT_RECEPTION_EXCEPTION: Expecting server connection to close.

    So it looks to me like the connection is closing before I can read the response? This is probably happening about 50% of the time.

    I've tried increasing AXISC_PROPERTY_CONNECT_TIMEOUT to 30, but still no joy.

    Does anybody have any ideas?

    Many thanks,
Working...
X