[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Again SSL problem: Interrupted system call

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2007-10-31 14:44:57 CET

On 31 Oct 2007, at 12:42, Matthias Junker wrote:

> Could anybody help me understanding what this error "interrupted
> system call" means? Didn't get any replies on this. Or should i
> post this on the dev list?

It's a Unix error code (EINTR) that is returned by a system call when
the process receives a signal while the system call is being
processed. For example, if a process is in the read system call
getting some data from a TCP/IP connection and you ctrl-C it or kill
it, EINTR may be returned (assuming the signal is caught and does not
just terminate the program). From the man page of sigaction(2) on my
Macintosh:

"If a signal is caught during the system calls listed below, the call
may be forced to terminate with the error EINTR, the call may return
with a data transfer shorter than requested, or the call may be
restarted. Restart of pending calls is requested by setting the
SA_RESTART bit in sa_flags. The affected system calls include open
(2), read(2), write(2) sendto(2), recvfrom(2), sendmsg(2) and recvmsg
(2) on a communications channel or a slow device (such as a terminal,
but not a regular file) and during a wait(2) or ioctl(2). However,
calls that have already committed are not restarted, but instead
return a partial success (for example, a short read count)."

The error message suggests your process is receiving some sort of
signal during SSL negotiation (which is not directly part of
Subversion). I have no idea how or why you might be getting a
signal. Maybe the TCP connection can generate one if some error
condition occurs.

>
> Thanks,
> Matt
>> Hello,
>> i'm working on a smalltalk client which uses the c api from
>> subversion, but i'm having some problems.
>>
>> when i run a command, the client first fails to connect for a
>> couple of times. i get the following errors:
>>
>>
>> could not connect to server (https://www.iam.unibe.ch)
>> SSL negotiation failed: Interrupted system call (https://
>> www.iam.unibe.ch)
>>
>> after like 20-30 retries, it suddenly connects and everything is
>> fine. the number of retries varies, but i always get the same errors.
>> since the retries slow down everything, i'd like to fix this, so
>> did anyone have similar problems or have any hint why this happens?
>>
>> For setting up the authentication stuff, i use the
>> svn_cmdline_setup_auth_baton function.
>>
>> Cheers,
>> Matt
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 1 07:58:08 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.