Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

BUG: Vista network connectivity lost after opening many connectionswith Perl.exe

microsoft.public.windows.vista.networking sharing






Speedup My PC
Reply
  #1 (permalink)  
Old 06-09-2009
mikkon@excelsql.com
 

Posts: n/a
BUG: Vista network connectivity lost after opening many connectionswith Perl.exe
BACKGROUND
----------

I first experienced a similar problem with the Internet Connection
Sharing as described here:
http://groups.google.fi/group/micros...hl=en&ie=UTF-8

Microsoft issued a hotfix to fix that issue, and my web crawler worked
fine for some time. However, sometime late 2008, I started seeing the
same symptoms again. I think some update from Windows Update has
brought the problem back, but I have no idea which one. Anyway, the
test script still causes networking failures, but this time Internet
Connection Sharing doesn't seem to be part of it.

TO REPRODUCE
------------

To reproduce the problem, you can run the Perl script attached at the
end of this post (to run Perl scripts, please download the Perl
runtime from http://www.activestate.com/activeperl/ first). The script
is very simple, it reads the same page repeatedly. You can substitute
a real web page for http://127.0.0.1/test.htm. I used a test.htm file
that consisted of a linefeed only (2 bytes). Obviously, Vista IIS 7 is
serving the page from localhost.

The test script runs fine for about 9000 fetches after which all
network connectivity is lost. My computer can no longer connect to any
other computer. The problem applies to all software (and all users),
and none of them can open new connections. Existing connections work
fine.

After the problem appears, the only way to get rid of it is to reboot
my computer. Waiting with no activity doesn't help. I have tried
waiting several hours, once even close to 12 hours.

Before Vista SP2 "netstat -s" showed a large number of Current
Connections, and "netstat -n" a large number of ESTABLISHED
connections. After Vista SP2, however, current connections drop
quickly after running the test script, and open connections vanish,
but the problem still persists.

AFFECTED SYSTEMS
----------------

I have tested the script on the following systems, and the problem has
appeared on all of them:

- Windows Vista Business 32-bit with SP1
- Windows Vista Home 64-bit with SP1
- Windows Vista Ultimate 64-bit with SP1
- Windows Vista Ultimate 64-bit with SP2

The problem does not appear on Windows XP (tested with a 32-bit
version). I am currently running my web crawlers on virtual machines
with Windows XP. If I run them on my Vista computer, they corrupt the
network connectivity in less than 4 hours of runtime.

OTHER INFO
----------

The problem is probably related to the way Perl opens sockets. The
problem seems to happen with Perl only; if I create a similar test
script with MSXML, no problems occur. Also, if I specify the
keep_alive option to LWP::UserAgent->new, the problem doesn't occur so
quickly. I can run my crawlers for several days with this option, but
eventually the problem happens.

It seems that Perl opens sockets and does not close them properly. I
think the fact that those sockets affect network connectivity long
after the Perl.exe process has exited is a bug in Windows Vista.

If Perl were to fix this issue somehow, I still think there whould be
a bug left in Windows Vista. It would resurface with some other
software, including malicious ones that may want to do so on purpose.

Also note that the test script runs without administrative access, and
it causes a system-wide problem.

If anyone can reproduce the problem, please post here.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-09-2009
Mikko
 

Posts: n/a
Re: BUG: Vista network connectivity lost after opening manyconnections with Perl.exe
> To reproduce the problem, you can run the Perl script attached at the
> end of this post [...]


Sorry, forgot to attach the script. Here goes:

use strict;
use LWP::UserAgent;

my $ua = LWP::UserAgent->new();

my $n=1;
while (1) {
print "Fetching page $n...";

my $req = HTTP::Request->new(GET => "http://127.0.0.1/test.htm");
$req->header('Accept' => 'text/html');

# Send request.
my $res = $ua->request($req);

# Check the outcome.
if ($res->is_success) {
print " OK!\n";
$n++;
}
else {
print " ERROR: " . $res->status_line . ".\n";
sleep 1; # Don't flood the console.
}

$req=undef;
}
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless connectivity is closing and opening AFTER recent Sec. Upd tanferani microsoft.public.windowsupdate 1 12-02-2007 04:04
Wireless connectivity is closing and opening AFTER recent Sec. Upd tanferani microsoft.public.windowsupdate 0 11-30-2007 06:38
Wireless connectivity is closing and opening AFTER recent Sec. Upd tanferani microsoft.public.windowsupdate 0 11-30-2007 06:36
Vista Network Connectivity Problem Mark Thompson microsoft.public.windows.vista.networking sharing 3 04-04-2007 21:03
Wireless Connectivity Lost after Vista Upgrade =?Utf-8?B?SGVsbHpiZWxseg==?= microsoft.public.windows.vista.general 0 02-26-2007 20:27




All times are GMT +1. The time now is 14:13.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120