[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Truncated replies.
Sender: e.klaasse@xxxxxxxx
Hi Scott,
Thanks again for your reaction. I hope i will answer your questions
sufficient.
In which routine is this happening? Is this happening in ssl_recvdoc() or
ssl_recvchunk()?
The routine is ssl_recvdoc()
Can you show me where you've inserted the 5 seconds? I don't know which
part of the code you're having problems with?
To be honoust it's only 4 seconds.
3025.00 c dow forever
3026.00
3027.00 c call 'SBWAITCL'
3028.00 c parm 000004 n6 6 0
3029.00
3030.00 c eval rc = gsk_secure_soc_read(peSSLh:
3031.00 c %addr(wwData): %size(wwData):
3032.00 c wwLen )
Without the 4 seconds and ignoring 406 the results of gsk_secure_soc_read
are:
1st) RC=502, no data received
2 1300 bytes received
3 100 bytes received
4 RC=502
5 1348 bytes received
6 RC=406
7 100 bytes received (message complete)
8) RC=5
On our As/400 with V5R1 the program runs great with ignoring RC=406. On the
AS/400 with V5R2 RC=406 will be repeated most of the times and the program
ends in an error.
With the 4 seconds there are no errors at all:
1st) 1300 bytes received
2) 100 bytes received
3) 1348 bytes received
4) 100 bytes received (message complete)
5) RC=5
Can you tell me what the value of errno is when
this happens? Is it, by chance, 3406?
ErrNo = 3426. Any idea what that means?
Your message tells me that you want me to look at the code more closely,
but you didn't say which code I should be looking at! :)
It was meant to be more polite :) I intended to ask (and not telling) you
to take a closer look at that part of the program. But more important, now
you know what part to look at!
If the routine ends with rc <> GSK_OK or GSK_WOULD_BLOCK then the
returncode (RC) is set to 1. Should this not be -1, because the routine
ends with an error?
Thanks in advance and hope to hear from you again!
Eric
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------