SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to time out \"Connect()\"

    Hi everybody,
    Is there a way to control the time-out for "Connect" statement. I'm running my tests on several machines and I don't want to wait forever if request to connect to the client machine hungs.
    I've tried setting up the timer object and then spawning the proces. One thread would try to connect while the other would check the timer and after number of secondes would set the control variable and exit the script. I'm using "qa_dlls_ipc.dll" in this example to pass the value of the variable between the threads. It should look something like this:

    Since I'm not using "rendezvous" I would think that any of those two threads who gets to set variable sRes would cause the script to end but it doesn't. It takes between 2-3 min to end...

    Any sugestions...
    Am I missing something?

    Thanks a lot,
    Michko

    ------------------

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to time out \"Connect()\"

    It's been more than a week since I posted this question and no replies. I guess the post got pushed to the next page and most people dont event read beyond the end of the first page. So I decided to repost the question....

  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to time out \"Connect()\"

    Contacting Segue Support might be the quickest way to get an answer.

    As a possible alternative this might (emphasis on might) help:
    http://support.microsoft.com/?kbid=170359

    John


    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:11 PM.

Copyright BetaSoft Inc.