FraCipolla opened a new issue, #110: URL: https://github.com/apache/openserverless/issues/110
- [ ] I have searched the [issues](https://github.com/apache/openserverless/issues) of this repository and believe that this is not a duplicate. ### Ⅰ. Issue Description trying to use stream.openserverless.dev/web/<namespace>/<package>/<action> will always timeout after 1 minute. Tested both with curl and invoking tha action from a browser ### Ⅱ. Describe what happened Action timeout after 1 minute try to invoke with: curl -XPOST -d '{"input":"01234567890123456789012345678901234567890123456789012345678901234567890123456789"}' "https://stream.openserverless.dev/web/msciab/hello/stream" with -N --max-time 0 same behaviour ### Ⅲ. Describe what you expected to happen ### Ⅳ. How to reproduce it (as minimally and precisely as possible) 1. deploy the below action 2. invoke it using the curl command provided 3. count to 60 and see what happens Minimal yet complete reproducer code (or URL to code): ``` import socket import time import json def stream(args): print("hello") inp = args.get("input") if host := args.get("STREAM_HOST"): try: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((host, int(args.get("STREAM_PORT")))) for c in inp: msg = {"output": "Char '%c' ASCII %d\n" %(c, ord(c))} s.sendall(json.dumps(msg).encode('utf-8')) time.sleep(1) s.sendall(b"{}") except: pass return {"output": "Returning ASCII char for the input.", "streaming": True} def main(args): return { "streaming": True, "body": stream(args), } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@openserverless.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org