mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
hostconnect now divides the timeout with no. of addresses. If a connection
attempt times out, it goes on to the next. Unless each timeout would be <5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
This commit is contained in:
parent
b9355b9a11
commit
a6ec8d37e6
2 changed files with 52 additions and 13 deletions
|
@ -53,6 +53,7 @@ typedef struct {
|
|||
|
||||
int php_hostconnect(const char *host, unsigned short port, int socktype, int timeout);
|
||||
PHPAPI int php_connect_nonb(int sockfd, const struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout);
|
||||
void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
|
||||
|
||||
#endif /* _PHP_NETWORK_H */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue