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

Re: Timeout problem with httapi 1.11 (release) - blocking socketsproblem ?



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
-----------------------------------------------------------------------