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

httpapi https_connect() problem



Sender: "Ian Patterson" <ian@xxxxxxxxxxxxxxxxxxxx>

I have raised this before (V5R1M0), but dropped the thread when I could not
resolve the issue, but it has come up again on another AS/400 (V5R2M0).

I would like to understand the processes that connect() goes through, so I
can determine whats happening.

We are connecting via SSL, so the procedure is https_connect()
When we connect to the remote server over an Internet connection (AS/400 -
LAN router - Internet) everything works fine.
When we connect using dial-up (modem - telephone line) using TCPPTP profiles
we get an error:
"invalid argument" - this is at the second https_connect checking whether
the connection worked.

So the processes are:
create a socket - OK
set buffer to 8K - OK
change socket to non blocking - OK
start connection process (if connect() etc) - OK
wait for completion (wwWait *on) - OK (no timeouts)
check to see if it worked (call connect()) with same parameters as first
call
 --- error that an argument for connect() is invalid

The three parameters for connect() are socket number, the socket address,
and the size of the address
They seem to be identical to the first call, so does this mean -
? the socket number may be invalid / destroyed. If so what can cause this.
? the address is invalid / destroyed. As above
? the size is invalid (always seems to be 16)


Regards

Ian Patterson

ian@xxxxxxxxxxxxxxxxx <mailto:ian@xxxxxxxxxxxxxxxxx>

Grange IT Limited
tel 01947 880458
www.grangesystems.com


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