#96 Provider should close req handler on shutdown

1.4.8
fixed
Dave Heller
None
None
Function
2014-03-27
2014-01-05
Dave Heller
No

When a provider process exits at shutdown, by receiving a SIGUSR1 from stopBroker(), it should attempt to close any outstanding http request handlers by sending some sort of CMPI_RC_ERR_FAILED response. Not only will this notify the client, hopefully allowing it to terminate normally, it allows the SFCB http req handler process to complete, so it will not be indefinitely hung in spRcvMsg() waiting for a response.

For example, we might return a message like the following to the client:

$ wbemcli cm http://localhost/root/cimv2:Sample_Method Misbehave.Action=hang
*
* wbemcli: Cim: (1) CIM_ERR_FAILED: *** Provider TestMethodProvider(14155) exiting due to a shutdown request
*

Related

News: 2014/03/new-release-sfcb-148

Discussion

  • Dave Heller
    Dave Heller
    2014-01-12

    Commit [81089c] for v1.4

     

    Related

    Commit: [81089c]

  • Dave Heller
    Dave Heller
    2014-01-12

    • status: open --> pending
     
  • Dave Heller
    Dave Heller
    2014-02-07

    • Release: backlog --> 1.4.8
     
  • Dave Heller
    Dave Heller
    2014-03-27

    • Status: pending --> fixed