http://www.perlmonks.org?node_id=984566


in reply to Re^4: Perl on Windows Best Practices?
in thread Perl on Windows Best Practices?

I can't replicate that because of my residential cable ISP.
No. Time Source Destination Protoc +ol Info 3 12.791678 192.168.1.112 157.56.203.150 ICMP + Echo (ping) request 4 14.956316 192.168.1.112 157.56.203.150 ICMP + Echo (ping) request 5 17.456431 192.168.1.112 157.56.203.150 TCP + 11975 > microsoft-ds [SYN] Seq=0 Win=16384 Len=0 MSS=1460 6 17.456837 192.168.1.112 157.56.203.150 ICMP + Echo (ping) request 7 17.465186 10.240.176.53 192.168.1.112 ICMP + Destination unreachable (Communication administratively filtered) 8 19.956352 192.168.1.112 157.56.203.150 ICMP + Echo (ping) request 9 20.441617 192.168.1.112 157.56.203.150 TCP + 11975 > microsoft-ds [SYN] Seq=0 Win=16384 Len=0 MSS=1460 13 22.456477 192.168.1.112 157.56.203.150 TCP + 11976 > netbios-ssn [SYN] Seq=0 Win=16384 Len=0 MSS=1460 16 22.465609 10.240.176.53 192.168.1.112 ICMP + Destination unreachable (Communication administratively filtered) 17 25.371335 192.168.1.112 157.56.203.150 TCP + 11976 > netbios-ssn [SYN] Seq=0 Win=16384 Len=0 MSS=1460 18 25.379983 10.240.176.53 192.168.1.112 ICMP + Destination unreachable (Communication administratively filtered) 19 26.376227 192.168.1.112 157.56.203.150 TCP + 11975 > microsoft-ds [SYN] Seq=0 Win=16384 Len=0 MSS=1460 20 31.405568 192.168.1.112 157.56.203.150 TCP + 11976 > netbios-ssn [SYN] Seq=0 Win=16384 Len=0 MSS=1460
did a "net use \\live.sysinternals.com\tools" to generate the above. console says
System error 67 has occurred. The network name cannot be found.
A residential ISP can't be blamed for blocking SMB ports.

update: Are you sure you are using SMB over the internet and not WebDAV? I turned on my Web Client service on XP, and retried to map the drive letter. I then ran
use Win32API::File 'QueryDosDevice'; print $olTargetLen = QueryDosDevice( 'W:', $osTargetPath, [] ); print "\n\n"; print $osTargetPath;
and got
74 \Device\WebDavRedirector\;W:000000000000fce5\live.sysinternals.com\too +ls
Thats not the SMB driver. If I rerun the script on an actual local network SMB share I get
54 \Device\LanmanRedirector\;Z:000000000000fce5\removedservername\c
and LanmanRedirector is the correct driver on NT for SMB.

Replies are listed 'Best First'.
Re^6: Perl on Windows Best Practices?
by BrowserUk (Pope) on Jul 31, 2012 at 06:12 UTC
    Are you sure you are using SMB over the internet and not WebDAV?

    Yes, I used WebDAV for the demo. I don't have an accessible other local machine right now. My other machine is taking a sabbatical.

    But I'm pretty sure that file shared across the local LAN were cached locally going right back to NT4. The first connections were always slow; and directory listings were never cached back then, so they were also slow; but individual file metadata was cached and reopening a remote file was always quicker the second time around.

    You are right about Vista/SMB2 though. Reading around, it seems to have improved things a lot through the use of bigger reads; coalesced commands and overlapped IO.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?