Socket() “too many files open” error – but no files are open

Tags:
AS/400
AS400. RPG
I am writing an RPG Sockets program and when I call the "C" socket() function, I am receiving an "EMFILE 3452 Too many open files for this process" error.  However, there are no other files open in this program. The code and prototypes are exactly the same as an existing "C" client that is working. Its fairly straightforward and seems like it should be working. Any ideas on what is happening would be appreciated. OS=V5R1 0068.00 d Socket          pr            10i 0 ExtProc('socket') 0069.00 d  prSockFam                    10i 0 Value 0070.00 d  prAddrType                   10i 0 Value 0071.00 d  prProtocol                   10i 0 Value      0187.00 d AF_INET         c                   Const(2) 0188.00 d SOCK_STREAM     c                   Const(1) 0189.00 d PROTOCOL        c                   Const(0) /FREE 0390.00     socket1 = Socket(AF_INET:SOCK_STREAM:PROTOCOL);

Software/Hardware used:
AS400 Sockets

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    ...when I call the "C" socket() function, I am receiving... How do you know that's what you're receiving? That is, please show the code that determines that an error exists and that the errno is 3452. Also, what happens before Socket() that might set errno? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following