Hi! Gianni Ceccarelli wrote:
if $line ~~ /^340/ { await $conn.print("[$consumer]: value $val\r\n"); } else { done; } Notice that if the client receives a 340, it sends stuff back to the server, and *does not exit*. You may want to add a ``done`` after that ``await``.
i don't want it to exit, i want it to keep reading from the socket until a "200" code happens.
Example: Client -- "Sending data" --> Host Client <---- 340 code ------ Host Client ---- "value XXX" ----> Host Client <--- 200 OK code ---- Host Like you said it looks like it's getting stuck in a react, but why? :-| Regards, David Santiago