python - Flask - delegate response to child process -


i'm using flask/python implement rest api , run each response in child process. need since want apply seccomp security extension after forking.

so far i'm doing following in request handler:

  1. fork
  2. in child - return response
  3. in parent - wait child

what's puzzling, in parent after child done. flask requires me return some response parent - returned child. there way signify flask nothing should done in parent handler?

clarification: want child write response - amount of returned data can quite massive , don't want relay through parent. different other questions, because parent should not touch socket @ (even not 204 response, writes headers anyway) - should somehow dispatcher "ok, i'm done response" once child has finished.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -