[package] update wput to 0.6.2 (#6410)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18964 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
--- a/src/socketlib.c
|
||||
+++ b/src/socketlib.c
|
||||
@@ -390,15 +390,13 @@ int socket_is_data_readable(int s, int t
|
||||
@@ -392,17 +392,15 @@ int socket_is_data_readable(int s, int t
|
||||
wput_socket * socket_timeout_connect(wput_socket * sock, struct sockaddr *remote_addr, size_t size, int timeout) {
|
||||
int c = 0;
|
||||
printout(vDEBUG, "initiating timeout connect (%d)\n", timeout);
|
||||
@ -12,7 +12,9 @@
|
||||
- socket_set_blocking(sock->fd, 0);
|
||||
+ socket_set_blocking(sock->fd, 1);
|
||||
c = connect(sock->fd,remote_addr,size);
|
||||
if(errno > 0 && errno != 115 && errno != 36) {
|
||||
/* here was a check also for errno != 36 (FILENAMETOOLONG)
|
||||
* maybe this was EINPROGRESS on another system? */
|
||||
if(errno > 0 && errno != EINPROGRESS) {
|
||||
- printout(vMORE, "[%s]", strerror(errno));
|
||||
+ printout(vMORE, "[%d:%s] ", errno, strerror(errno));
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user