Commit 7e3d3a6a authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '3ee2ec5e'

* commit '3ee2ec5e':
  unix: Use rw_timeout for setting the connect timeout
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents ba2d37e9 3ee2ec5e
......@@ -72,6 +72,9 @@ static int unix_open(URLContext *h, const char *filename, int flags)
if ((fd = ff_socket(AF_UNIX, s->type, 0)) < 0)
return ff_neterrno();
if (s->timeout < 0 && h->rw_timeout)
s->timeout = h->rw_timeout / 1000;
if (s->listen) {
ret = ff_listen_bind(fd, (struct sockaddr *)&s->addr,
sizeof(s->addr), s->timeout, h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment