[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Timeout problem with httapi 1.11 (release) - blocking sockets problem ?



Sender: "Peter Sawatzki" <peter@xxxxxxxxxxx>

Scott,

Thanks for looking into this and your speedy response, it is very much
appreciated.

Peter 

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: Friday, August 12, 2005 9:53 PM
To: 'FTPAPI'
Subject: Re: Timeout problem with httapi 1.11 (release) - blocking sockets
problem ?

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


> I've compared beta version and release version and the difference seems 
> to me the blocking/non-blocking stuff. I'm attaching a test RPG program 
> that demonstrates the problem.

You're correct, there's a bug in the CommTCP_ConnectBlocking() 
subprocedure. It should be using blocking mode during the connection, but 
switching to non-blocking mode after the connection is established. 
The bug is that it's not doing that (it's leaving it in blocking mode)

A quick workaround to the problem is to undefine the HTTP_BLOCK_ON_CONNECT 
option in CONFIG_H and re-compile HTTPAPI.

Since this is a pretty major problem, I'll generate a new release 
with a proper fix (version 1.12) with the fix and put it on the web site 
as soon as I can.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------