Skip to content

sys.ncat UDP hangs. #752

@hulto

Description

@hulto

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

  1. Start a UDP listener with nc sudo nc -l -v -u 1337
  2. Verify it's listening on 1337 sudo ss -ptuan | grep 1337
  3. Create the following test eldritch file:
def main(): pivot.ncat("127.0.0.1", 1337, "Hello World", "udp") main() 
  1. Run the test code golem:$ cargo run -- /tmp/test.eldritch
  2. See the listener receive the message
  3. 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.

Screenshots
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeldritchRelated to the Eldritch language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions