- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Socket connect request fails with EINPROGRESS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:06 AM
04-23-2002 01:06 AM
21231: socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 7
21231: fcntl(7, F_GETFL, 0) = 2
21231: fcntl(7, F_SETFL, 65538) = 0
21231: connect(7, 0x400c4d50, 16) = -1 EINPROGRESS (Operation now in progress)
21231: time(0x7b03be08) = 0x3cc5260a
The manual for connect explains:
[EINPROGRESS] Nonblocking I/O is enabled using O_NONBLOCK, O_NDELAY, or FIOSNBIO, and
the connection cannot be completed
immediately. This is not a failure.
Make the connect() call again a few
seconds later. Alternatively, wait for
completion by calling select() and
selecting for write.
Can someone point me to an example C++/C code of a non-blocking connect request.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 03:07 AM
04-23-2002 03:07 AM
Re: Socket connect request fails with EINPROGRESS
Go to
http://h21007.www2.hp.com/
Search einprogress
Gives a code example to help.
Is developers portal for languages.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 03:23 AM
04-23-2002 03:23 AM
Re: Socket connect request fails with EINPROGRESS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 03:36 AM
04-23-2002 03:36 AM
SolutionThe bottom line is connect() will return 0 if connected immediately (not likely) , EINPROGRESS if not.
Then, select() returns readable for the socket after the connection is complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 03:41 AM
04-23-2002 03:41 AM
Re: Socket connect request fails with EINPROGRESS
There more to it than that for complete error checking, but those are the basics.