CESNET / glite-lb

gLite Logging and Bookkeeping.
3 stars 2 forks source link

Usage of gsoap-plugin #33

Open sustr4 opened 9 years ago

sustr4 commented 9 years ago

Original submission by Alvise:

I saw that the usage of gsoap-plugin resets in some way the field error in the SOAP structure. When authentication is disabled (gsoap-plugin not registered) I observed some different values of SOAP->error:

  1. SOAP_EOF (when connection takes longer than what specified in SOAP->send/recv_timeout)
  2. SOAP_TCP_ERROR (when try to connect to an unknown host, not allowed TCP port, etc.)
  3. SOAP_CLI_FAULT
  4. SOAP_SVR_FAULT
  5. SOAP_FAULT
  6. etc. etc.

When using the gsoap-plugin, all the possible SOAP error codes seem collapsed into "1" (SOAP_CLI_FAULT).

This forces me to discern a connection timeout or a connection refused by matching the fault strings (that is not very nice) in order to take the proper action.

Is this behavior known and wanted ? or is it a bug in the gsoap-plugin ?

If wanted, is there another way to recover that precious error code ?