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:
- fork
- in child - return response
- 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
Post a Comment