Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminate processing Callback
#2
You can, if you spawn a thread and let it handle the slow task.

In your example, you can't basically because the session is locked responding to that request that takes a long time to return. Remember that althought the server can handle mulitiple requests at the same time from different sessions, it needs to finish one request from one session before working on another request from the same session. This is the only way to keep the coherency of the session (i.e. 2 different conflicting actions won't interefere with each other).

So, the option is to run the process within a thread and let the server respond to the request. The issue that you will have with this approach is that later you will need to check the server for the completion of the request.

If you give me more details about your requirements we can expand it a bit more
Reply


Messages In This Thread
Terminate processing Callback - by RenSword - 10-11-2023, 03:17 AM
RE: Terminate processing Callback - by Alexandre Machado - 10-16-2023, 11:22 PM
RE: Terminate processing Callback - by RenSword - 10-17-2023, 04:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)