- Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
bugSomething isn't workingSomething isn't workingeldritchRelated to the Eldritch languageRelated to the Eldritch language
Description
Describe the bug
sys.ncat UDP hangs for a long time when it doesn't receive a response.
This is not an ideal behavior.
To Reproduce
- Start a UDP listener with nc
sudo nc -l -v -u 1337
- Verify it's listening on 1337
sudo ss -ptuan | grep 1337
- Create the following test eldritch file:
def main(): pivot.ncat("127.0.0.1", 1337, "Hello World", "udp") main()
- Run the test code
golem:$ cargo run -- /tmp/test.eldritch
- See the listener receive the message
- Notice that the golem process doesn't exit until you send and enter back over the UDP socket.
The same behavior occurs if port 1337 isn't open or is getting dropped by the FW
Expected behavior
The ncat function should expose a timeout variable with a sensible default eg. 3 seconds.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingeldritchRelated to the Eldritch languageRelated to the Eldritch language