Post

Replies

Boosts

Views

Activity

NWConnection and isComplete
I started a TCP Listener for inboud files from a device. The file is downloaded to /tmp/UUID. For some reason there's no acknowledgment of isComplete at the end of the stream. It's false and an error is returned instead. connectionDidEnd, connection: [C1 connected ::1.58660 tcp, local: ::1.12345, server, prohibit joining, path satisfied (Path is satisfied), viable, interface: lo0] connection failed, error: POSIXErrorCode: No message available on STREAM I see this behavior from Netcat during testing  cat sample-2mb-text-file.txt | nc localhost 12345 Real question I have here is why is isComplete not true? Why the error instead?
1
0
1k
Apr ’21