|
Until you read in my previous e-mail that the OS400 implementation does not deblock. Bet you that the JAVA uses a different implementation than OS400 API's. Also the Shutdown(sendingsocket:1) causes the remote side to close the connection. Thus leading to the following error: 3426 A connection with a remote socket was reset. Chris Bipes Information Services Director CrossCheck, Inc. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs Sent: Tuesday, October 25, 2005 10:45 AM To: Midrange Systems Technical Discussion Cc: RPG400-L@xxxxxxxxxxxx Subject: Socket read error (was: Sniff TCP/IP traffic on iSeries?) *** CROSS POSTING TO RPG400-L because it relates to RPG programming now. Chris Bipes wrote: > Well if the code works else where, PTF should fix the problem. Good > Luck. Well, it gets weirder and weirder. We finally got boat loads of PTF's installed ... and can now run our java server on the iSeries ... but we're still getting the same error. We're communicating to localhost. So this rules out networking problems. When I run a java test program that interacts with the server (also running java, different JVM) it responds correctly. This pretty much rules out the server application. However, if I try to invoke the same transaction from RPG, I get the 3426 error when I do the read. The send works fine ... no errors. My basic logic is as follows ... open socket connect to remote send data on socket shutdown sending socket [shutdown(socket:1)] read data from socket At this point I'm getting a -1 from the read. When I get the errno value, I'm getting 3426. I'm at wits end on this one.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.