diff options
| -rw-r--r-- | main/streams/transports.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/streams/transports.c b/main/streams/transports.c index 24811067ed..501bdfd7b0 100644 --- a/main/streams/transports.c +++ b/main/streams/transports.c @@ -62,7 +62,9 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, long namelen, int const char *p, *protocol = NULL; int n = 0, failed = 0; char *error_text = NULL; - struct timeval default_timeout = { FG(default_socket_timeout), 0 }; + struct timeval default_timeout = { 0, 0 }; + + default_timeout.tv_sec = FG(default_socket_timeout); if (timeout == NULL) { timeout = &default_timeout; |
