- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Canceling request issued by $ICC_CONNECT[W]
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
08-10-2005 07:26 PM
08-10-2005 07:26 PM
Canceling request issued by $ICC_CONNECT[W]
Is there a way to canceling a connect request issued by $ICC_CONNECT[W] routine (like sys$cancel)? Can someone provide any tips&triks?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 11:20 PM
08-10-2005 11:20 PM
Re: Canceling request issued by $ICC_CONNECT[W]
you seem to be having problems with ICC ;-)
A SYS$ICC_CONNECT[W] either fails immediately or it will hang, until the server issues a SYS$ICC_ACCEPT. There does not seem to be a connect timeout mechanism (tested this with the VERY_SIMPLE_SERVER example and sitting on a breakpoint at conn_ast in the server).
What is the problem you're trying to solve ?
Why would you want to cancel a connect ? Is the server hung ?
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 11:37 PM
08-10-2005 11:37 PM
Re: Canceling request issued by $ICC_CONNECT[W]
I have many problems... :-)
I known that there is not a timeout handling or any other documented way to canceling request, that cause a blocking "client" if a "server" don't issued sys$icc_accept/reject
I just interesting what think about this VMS-guys... ICC is the great stuff (as I told), but need some improving.
PS:Yep, I have tried to solve a problem in threaded application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 12:42 AM
08-11-2005 12:42 AM
Re: Canceling request issued by $ICC_CONNECT[W]
if you would use the asynchronous form of SYS$ICC_CONNECT and start your own timer AST routine, you could detect the timeout, when the AST is being delivered and prevent your client from hanging on the SYS$ICC_CONNECTW. If the SYS$ICC_CONNECT works, just cancel the timer AST.
You can't cancel the hanging connect, but you could continue in your client - whatever it can do, if the server is hung...
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 12:50 AM
08-11-2005 12:50 AM
Re: Canceling request issued by $ICC_CONNECT[W]
Moreover, every $icc_connect charging some resources from the process quota.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 12:55 AM
08-11-2005 12:55 AM
Re: Canceling request issued by $ICC_CONNECT[W]
if you remember the 'connect-pending' state in some data structure in the client, you could prevent the client from trying connects all over again. Once the connect-ASTs comes through, just clear the connect-pending flag and the client knows it's now safe to try another connect...
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 01:14 AM
08-11-2005 01:14 AM
Re: Canceling request issued by $ICC_CONNECT[W]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 01:23 AM
08-11-2005 01:23 AM
Re: Canceling request issued by $ICC_CONNECT[W]
easy ;-)
The client will receive a %SYSTEM-F-REJECT
Again, I've simulated this with the VERY_SIMPLE_SERVER example, set a break on conn_ast and type DBG> exit, so that the server would exit.
You can get the examples from Ask Compaq (NLSA): http://askq.compaq.com/
Just search for ICC EXAMPLE and use the simple one. You can easily answer most of your questions by using these examples in the right way to simulate your scenario.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 01:30 AM
08-11-2005 01:30 AM
Re: Canceling request issued by $ICC_CONNECT[W]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 01:39 AM
08-11-2005 01:39 AM
Re: Canceling request issued by $ICC_CONNECT[W]
I'm sure ;-)
These ICC routines are pretty low-level functions as you've seen: no timeouts etc.
But they have been written by OpenVMS engineers, so they are at least predictable in behaviour.
I must admit, that I've never used ICC in my life before, but after obtaining the examples, looking through the [IPC] and [TPSSDA] source listings and answering your questions, I'm beginning to feel like an ICC expert. And the behaviour of these routines - once you've understood them - is pretty straightforward - just the way we like it in OpenVMS !
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 01:53 AM
08-11-2005 01:53 AM
Re: Canceling request issued by $ICC_CONNECT[W]
I'm glad to hear that you are "beginning to feel like an ICC expert" after playing with ICC examples. :-)
Anyway thanks.