Displaying 20 results from an estimated 113 matches for "einprogress".
2013 Jul 31
3
[Bug 2135] New: Solaris: race condition in channel forwarding when connect() returns EINPROGRESS
https://bugzilla.mindrot.org/show_bug.cgi?id=2135
Bug ID: 2135
Summary: Solaris: race condition in channel forwarding when
connect() returns EINPROGRESS
Product: Portable OpenSSH
Version: 6.0p1
Hardware: All
OS: Solaris
Status: NEW
Severity: normal
Priority: P5
Component: sshd
Assignee: unassigned-bugs at mindrot.org
Reporter: ivo.raisr at o...
2005 May 18
0
Err#150 EINPROGRESS
...= 0
so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", 1) = 256
setsockopt(256, tcp, TCP_NODELAY, 0xFFBFBB0C, 4, 1) = 0
fcntl(256, F_GETFL, 0xFF357AA8) = 2
fcntl(256, F_SETFL, 0x00000082) = 0
connect(256, 0x003E9B10, 16, 1) Err#150 EINPROGRESS
After that the process goes sleeping and doesn't come back. Any ideas?
Anyone?
Thanks in advance!
2020 Jul 29
9
[PATCH 0/9] drm/nouveau/kms: A bunch of runtime_pm fixes
...+ a bunch of misc DP stuff, I found a bunch of runtime_pm errors that
were mostly introduced by me at one point. Oops. A lot of these aren't
triggered consistently on a lot of systems, so it's not terribly
surprising these got swept under the rug.
Lyude Paul (9):
drm/nouveau/kms: Handle -EINPROGRESS in nouveau_connector_hotplug()
drm/nouveau/kms: Fix rpm leak in nouveau_connector_hotplug()
drm/nouveau/kms/fbcon: Correct pm_runtime calls in
nouveau_fbcon_release()
drm/nouveau/kms/fbcon: Fix pm_runtime calls in
nouveau_fbcon_output_poll_changed()
drm/nouveau/kms/fbcon: Use pm_run...
2006 Jan 31
0
adding a select or a poll?
...problem at startup:
Imap-login would'nt connect to the 'default' socket.
I've been strugling with the fact that it would eventually connect on a
slow or moderely fast machine but not on a really fast machine.
According to Unixware doc, the FIRST connect ALWAYS returns -1 and
errno=EINPROGRESS
AFAICT, imap loop is like this:
while (1)
connect
if no error bu EINPROGRESS
send_handshake
if successfull
break;
end while
Now, I think the time between connect and send_handshake might be too
short for async connect to finish in most case.
I recognize is a Unixware probleme but I think thi...
2004 Sep 03
1
rsync 2.6.2 with Posix socket on HP-UX
...make check
'make check' also fails with daemon mode tests but with
the different error message.
rsync: socketpair_tcp failed (Bad file number)
I check the source socket.c and found two problems.
Actual error occurs at the second connect() in
socketpair_tcp() (line 737) and the errno is EINPROGRESS.
close(listener);
if (connect_done == 0) {
>>> if (connect(fd[1], (struct sockaddr *)&sock, sizeof sock) != 0
&& errno != EISCONN)
goto failed;
}
set_blocking(fd[1]);
Then it hits "goto failed" and there "listener" is closed
as it is not -1...
2011 Jul 30
2
[PATCH] net_connect_*(): Wait for fd to complete connect(2) when fd is non-blocking
Hi,
Dovecot ignores EINPROGRESS on connect(2) for non-blocking fd.
This is wrong. After that, read(2) to fd (or write(2) to fd) fails
with ENOTCONN if the connection of fd is not completed.
The attached patch fixes this problem.
--
-- Name: SATOH Fumiyasu (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
--...
2016 May 02
2
New UPS Support: Eaton 5S 1000
...ted. This system is slated for replacement, but in the
meantime I'm responsible for it.
The repo version of nut was 2.6.4-2.3ubuntu2. Installing it was useful as
it gave me the nut user and group. The compiled version errors out whether
or not the repo version is installed.
I just did strace. EINPROGRESS seems to be part of some socket connect code
either doing with ldap or DNS. I have no idea why it is doing this as the
upsmon process user "nut" is local, nsswitch.conf has files before ldap,
and the UPS is on USB and in standalone mode. Maybe just boilerplate
library initialization?
The...
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote:
> so I spent a bit of time looking at this and it seems like the only
> way to go, at least if I want to keep it in ssh_connect_direct(), is
> to use pthreads. further, it seems like getting that accepted is
> something of a long shot:
Sorry, pthreads is a non-starter.
I would have thought that using
2002 Jul 08
0
[Bug 343] New: Only try connect to first address when creating tunnel
...Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: stig at venaas.com
In connect_to() in channels.c there is a loop trying to connect to each
address returned by getaddrinfo() until connect() is successful or
EINPROGRESS is returned. The socket is non-blocking so unless something
immediately fails, EINPROGRESS is returned and we happily leave the loop.
Then when we later attempt to write to the socket, we realize that we're
not connected. No route to host, connection refused etc. I would like
sshd to try anothe...
2019 Mar 08
1
Dovecot v2.3.5 released
On 7.3.2019 23.37, A. Schulze via dovecot wrote:
>
> Am 07.03.19 um 17:33 schrieb Aki Tuomi via dovecot:
>
>>> test-http-client-errors.c:2989: Assert failed: FALSE
>>> connection timed out ................................................. : FAILED
> Hello Aki,
>
>> Are you running with valgrind or on really slow system?
> I'm not aware my buildsystem
2004 Feb 02
1
ldaps connections
...ing that a secure ldap connection should only send
encrypted data yet my configuration is sending plaintext
The following strace output from a smbpasswd results in the following:
connect(4, {sin_family=AF_INET, sin_port=htons(636),
sin_addr=inet_addr("<ldap server>")}}, 16) = -1 EINPROGRESS (Operation
now in progress)
...snip...
write(4, "07\2\1\1`2\2\1\3\4$cn=Manager,dc=kelvin"..., 57) = 57
write(1, "failed to bind to server with dn"..., 104failed to bind to
server with dn= cn=Manager,dc=kelvininstitute,dc=com Error: Can't
contact LDAP server
) = 104
..snip...
2001 May 01
1
connecting to non-responding hosts: 1 hr timeout (fwd)
Hello all,
If you try to make a TCP connection to a host, and the host is down,
timeouts can be as long as an hour. This is not specific to ssh, or OS.
Is this a scenario worth working around, e.g. with a timer when
connecting or the like?
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems.
2017 Aug 03
2
proxy-dict with tcp connection
...13:20:04 doveadm(10.44.88.1,info at outdoor-training.de): Error:
user info at outdoor-training.de: Auth PASS lookup failed
It looks like the tcp connection gets opened non-blocking and the first
write / dict lookup happens to early:
4303041 13:44:25.120398220 0 auth (29884) < connect
res=-115(EINPROGRESS) tuple=172.18.0.2:47552->10.44.99.180:2001
Looking at dict-memcached-ascii.c I probably need to do something like:
i_array_init(&dict->input_states, 4);
i_array_init(&dict->replies, 4);
dict->ioloop = io_loop_create();
io_loop_set_current(old_ioloop);
*dic...
2002 Apr 03
1
[PATCH] connect() timeout
...socklen_t optlen = sizeof(optval);
+ struct timeval tv;
+
+
+ if (timeout <= 0)
+ return(connect(sockfd, serv_addr, addrlen));
+
+ if (fcntl(sockfd, F_SETFL, O_NONBLOCK) < 0)
+ {
+ return -1;
+ }
+
+ rc = connect(sockfd, serv_addr, addrlen);
+ if (rc == 0)
+ return 0;
+ if (errno != EINPROGRESS)
+ return -1;
+
+ FD_ZERO(&fds);
+ FD_SET(sockfd, &fds);
+ tv.tv_sec = timeout;
+ tv.tv_usec = 0;
+ rc=select(sockfd+1, NULL, &fds, NULL, &tv);
+
+ switch(rc) {
+ case 0:
+ errno = ETIMEDOUT;
+ case -1:
+ return -1;
+ break;
+ case 1:
+ if (getsockopt(sockfd, SOL_SOCKET, SO_ERR...
2018 Jan 11
2
Tripp-Lite BCPERS450 shutdown/restart problems
...URB type: URB_SUBMIT ('S')
URB transfer type: URB_CONTROL (0x02)
Endpoint: 0x00, Direction: OUT
Device: 44
URB bus id: 1
Device setup request: relevant (0)
Data: present (0)
URB sec: 1515699253
URB usec: 785764
URB status: Operation now in progress (-EINPROGRESS) (-115)
URB length [bytes]: 3
Data length [bytes]: 3
[Response in: 27739]
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000000
Number of ISO descriptors: 0
[bInterfaceClass: HID (0x03)]
URB setup
bmRequestType: 0x21
bRequest: 9
wValue: 0x0315...
2015 Mar 11
2
Notes on building a gcc toolchain for Rtools (but not multilib)
...em now, and it will be easy to fix. In case anyone
else finds this thread, here's the problem:
The regular Windows internet code (not internet2) used the Winsock
interface. It returns different error codes than the Unix sockets
interface. Some error codes are ignorable (EWOULDBLOCK and
EINPROGRESS); these are WSAEWOULDBLOCK and WSAEINPROGRESS in Winsock.
We had code like
#ifndef EWOULDBLOCK
# define EWOULDBLOCK WSAEWOULDBLOCK
#endif
so our code could work with the Unix macro names. However, the new
toolchain defines both EWOULDBLOCK
and WSAEWOULDBLOCK, so the remapping neve...
2016 Apr 26
3
New UPS Support: Eaton 5S 1000
I've used NUT successfully for monitoring many different brands of UPS, but
this one has me stumped. It has the same manufacturer ID and Product ID as
older supported MGE-type Eaton UPS's, but has trouble talking. I tried
Ubuntu's repo NUT, and it logs a Connecting to UPS message every few
seconds forever, but never really succeeds (or says it fails). Different
failure mode after
2016 Dec 27
1
[PATCH] virtio-crypto: support crypto engine framework
...->ablkcipher_ctx = ctx;
vc_req->ablkcipher_req = req;
- ret = __virtio_crypto_ablkcipher_do_req(vc_req, req, data_vq, 1);
- if (ret < 0) {
- pr_err("virtio_crypto: Encryption failed!\n");
- return ret;
- }
+ vc_req->encrypt = true;
+ vc_req->dataq = data_vq;
- return -EINPROGRESS;
+ return crypto_transfer_cipher_request_to_engine(data_vq->engine, req);
}
static int virtio_crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
@@ -445,20 +440,16 @@ static int virtio_crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
struct virtio_crypto_ablkcipher_ctx *ctx...
2016 Dec 27
1
[PATCH] virtio-crypto: support crypto engine framework
...->ablkcipher_ctx = ctx;
vc_req->ablkcipher_req = req;
- ret = __virtio_crypto_ablkcipher_do_req(vc_req, req, data_vq, 1);
- if (ret < 0) {
- pr_err("virtio_crypto: Encryption failed!\n");
- return ret;
- }
+ vc_req->encrypt = true;
+ vc_req->dataq = data_vq;
- return -EINPROGRESS;
+ return crypto_transfer_cipher_request_to_engine(data_vq->engine, req);
}
static int virtio_crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
@@ -445,20 +440,16 @@ static int virtio_crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
struct virtio_crypto_ablkcipher_ctx *ctx...
2002 May 22
0
[PATCH] connect() timeout
...set;
+ struct timeval tv;
+ socklen_t optlen;
+ int fdsetsz, optval, rc;
+
+ if (timeout <= 0)
+ return(connect(sockfd, serv_addr, addrlen));
+
+ if (fcntl(sockfd, F_SETFL, O_NONBLOCK) < 0)
+ return -1;
+
+ rc = connect(sockfd, serv_addr, addrlen);
+ if (rc == 0)
+ return 0;
+ if (errno != EINPROGRESS)
+ return -1;
+
+ fdsetsz = howmany(sockfd+1, NFDBITS) * sizeof(fd_mask);
+ fdset = (fd_set *)xmalloc(fdsetsz);
+ memset(fdset, 0, fdsetsz);
+ FD_SET(sockfd, fdset);
+ tv.tv_sec = timeout;
+ tv.tv_usec = 0;
+ rc=select(sockfd+1, NULL, fdset, NULL, &tv);
+
+ switch(rc) {
+ case 0:
+ errno = ET...