Issuing a sdapi call for long generations, is easy enough to cancel on the client side. but the generation server will continue to process until it actually has to respond with the image. At which point it notices that it has no connection. But this could be minutes later. and in the meantime, no more images can be started until it figures this out. The api needs to poll in a background task at least that the tcp connection is still valid. Or a separate cancel api call to abort any current operations.
Issuing a sdapi call for long generations, is easy enough to cancel on the client side. but the generation server will continue to process until it actually has to respond with the image. At which point it notices that it has no connection. But this could be minutes later. and in the meantime, no more images can be started until it figures this out. The api needs to poll in a background task at least that the tcp connection is still valid. Or a separate cancel api call to abort any current operations.