Solution: set errno to EINVAL when tcp:// endpoint is invalid (was just leaving errno to previous value).
Attach a file by drag & drop or click to upload