A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

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

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

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



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 9th 09, 10:55 AM posted to microsoft.public.windows.vista.networking_sharing
[email protected]
external usenet poster
 
Posts: 1
Default 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 he
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.
  #2 (permalink)  
Old June 9th 09, 11:03 AM posted to microsoft.public.windows.vista.networking_sharing
Mikko[_2_]
external usenet poster
 
Posts: 1
Default 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;
}
 




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 On



All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.