Search the web
Sign In
New User? Sign Up
hercules-390 · Discussion group for users of the Hercules ESA/390 mainframe emulator
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
socket woes   Message List  
Reply | Forward Message #58154 of 59171 |
RE: [hercules-390] Re: socket woes




--- In hercules-390@yahoogroups.com <mailto:hercules-390%40yahoogroups.com>
, "Fish" <fish@...> wrote:
>
>
> http://support.microsoft.com/kb/929851
<http://support.microsoft.com/kb/929851>
>
> "To comply with Internet Assigned Numbers Authority (IANA)
> recommendations, Microsoft has increased the dynamic client
> port range for outgoing connections in Windows Vista and in
> Windows Server 2008. The new default start port is 49152,
> and the default end port is 65535. This is a change from the
> configuration of earlier versions of Microsoft Windows that
> used a default port range of 1025 through 5000."

Ok, I decided to put things back to how they used
to be in the good old days with this:

fixports.bat:

netsh int ipv4 set dynamicport tcp start=1025 num=3975
netsh int ipv4 set dynamicport udp start=1025 num=3975
netsh int ipv6 set dynamicport udp start=1025 num=3975
netsh int ipv6 set dynamicport tcp start=1025 num=3975

And lo and behold, I was able to cycle through these
"virgin ports".

attempt number 3960: getsockname: rc 0, len 16, listening on 127.0.0.1:1842
attempt number 3961: getsockname: rc 0, len 16, listening on 127.0.0.1:1843
attempt number 3962: getsockname: rc 0, len 16, listening on 127.0.0.1:1844
attempt number 3963: getsockname: rc 0, len 16, listening on 127.0.0.1:1845
attempt number 3964: getsockname: rc 0, len 16, listening on 127.0.0.1:1846
attempt number 3965: getsockname: rc 0, len 16, listening on 127.0.0.1:1847
attempt number 3966: getsockname: rc 0, len 16, listening on 127.0.0.1:1848
attempt number 3967: getsockname: rc 0, len 16, listening on 127.0.0.1:1849
attempt number 3968: getsockname: rc 0, len 16, listening on 127.0.0.1:1850
attempt number 3969: getsockname: rc 0, len 16, listening on 127.0.0.1:1851
attempt number 3970: getsockname: rc 0, len 16, listening on 127.0.0.1:1852
attempt number 3971: getsockname: rc 0, len 16, listening on 127.0.0.1:1853
attempt number 3972: getsockname: rc 0, len 16, listening on 127.0.0.1:1858
attempt number 3973: getsockname: rc 0, len 16, listening on 127.0.0.1:1859
attempt number 3974: getsockname: rc 0, len 16, listening on 127.0.0.1:1860
attempt number 3975: getsockname: rc 0, len 16, listening on 127.0.0.1:1861
attempt number 3976: getsockname: rc 0, len 16, listening on 127.0.0.1:1862

Getting tired of success, I decided to close my Windows
Mail (ex-Outlook Express), which has invoked a problem
with fishbug before.

And lo and behold,

attempt number 7935: getsockname: rc 0, len 16, listening on 127.0.0.1:1846
attempt number 7936: getsockname: rc 0, len 16, listening on 127.0.0.1:1847
attempt number 7937: getsockname: rc 0, len 16, listening on 127.0.0.1:1848
attempt number 7938: getsockname: rc 0, len 16, listening on 127.0.0.1:1849
attempt number 7939: getsockname: rc 0, len 16, listening on 127.0.0.1:1850
attempt number 7940: getsockname: rc 0, len 16, listening on 127.0.0.1:1851
attempt number 7941: getsockname: rc 0, len 16, listening on 127.0.0.1:1852
attempt number 7942: getsockname: rc 0, len 16, listening on 127.0.0.1:1853
attempt number 7943: getsockname: rc 0, len 16, listening on 0.0.0.0:1855
address has changed!

that put an end to the roaring success.

Set it off again and:

attempt number 3954: getsockname: rc 0, len 16, listening on 127.0.0.1:1848
attempt number 3955: getsockname: rc 0, len 16, listening on 127.0.0.1:1849
attempt number 3956: getsockname: rc 0, len 16, listening on 127.0.0.1:1850
attempt number 3957: getsockname: rc 0, len 16, listening on 127.0.0.1:1851
attempt number 3958: getsockname: rc 0, len 16, listening on 127.0.0.1:1852
attempt number 3959: getsockname: rc 0, len 16, listening on 127.0.0.1:1853
attempt number 3960: getsockname: rc 0, len 16, listening on 127.0.0.1:1854
attempt number 3961: getsockname: rc 0, len 16, listening on 0.0.0.0:1855
address has changed!

So, the act of closing Windows Mail appears to have introduced
a "rogue port".

So the obvious questions now are:

Who? Why? When? What? Where? Which?

BFN. Paul.

*******************************************************

Try using the set socket re-use option as fish suggested,
And see if it has any effect :)





Sat Jul 4, 2009 4:45 am

stevebovy
Offline Offline
Send Email Send Email

Forward
Message #58154 of 59171 |
Expand Messages Author Sort by Date

... Ok, I decided to put things back to how they used to be in the good old days with this: fixports.bat: netsh int ipv4 set dynamicport tcp start=1025...
kerravon86
Offline Send Email
Jul 4, 2009
2:09 am

... <http://support.microsoft.com/kb/929851> ... Ok, I decided to put things back to how they used to be in the good old days with this: fixports.bat: netsh...
Steve And Grace Bovy
stevebovy
Offline Send Email
Jul 4, 2009
4:46 am

... <mailto:hercules-390%40yahoogroups.com> ... <http://support.microsoft.com/kb/929851> <http://support.microsoft.com/kb/929851 ...
Steve And Grace Bovy
stevebovy
Offline Send Email
Jul 4, 2009
4:51 am

... Hash: SHA1 kerravon86 wrote: [...] ... I have no idea. :( However... Since you're using VS2005 whereas I'm using VS2008, there exists the possibility that...
Fish
fish_hercules
Offline Send Email
Jul 5, 2009
8:08 pm

... I've reproduced the problem on 3 different compilers. Surely that is sufficient to eliminate the compiler? ... Directory of C:\scratch\xxxx\sockbug\bin ...
kerravon86
Offline Send Email
Jul 5, 2009
11:37 pm

... "kerravon86" <kerravon86@...> wrote: - - - snipped - - - ... On my Windows XP PRO, Windows assigns low port numbers. On my Windows Vista Home Premium,...
somitcw
Offline Send Email
Jul 3, 2009
3:06 am

... What a lot of crap I have on my system! Anyway, I saved it to a file before my latest run. Some of the numbers are very close, but no exact match. Here's...
kerravon86
Offline Send Email
Jul 3, 2009
4:13 pm

... Hash: SHA1 kerravon86 wrote: [...] ... [...] ... [...] ... FYI: Your is likely cygwin (or mingw?) related. Using your test program (along with the changes...
Steve And Grace Bovy
stevebovy
Offline Send Email
Jul 2, 2009
3:22 am

From: hercules-390@yahoogroups.com [mailto:hercules-390@yahoogroups.com] On Behalf Of Ivan Warren Sent: Sunday, June 28, 2009 4:23 AM To:...
Steve And Grace Bovy
stevebovy
Offline Send Email
Jun 30, 2009
3:18 am

Paul, First, the correction to create_pipe/socketpair is correct (the 2nd & 3rd parameters are reversed).... But irrelevant to your problem ! The parameters...
Ivan Warren
ivan_warhead...
Offline Send Email
Jun 27, 2009
9:15 pm

... Ok. ... Ok, perhaps combined with single-threading on my PC. ... Thanks Warren. Unfortunately I'm still getting: 10:51:07 HHCSD004I Device 000C bound to...
kerravon86
Offline Send Email
Jun 28, 2009
1:00 am

... I tried forcing an unusual amount of time in order to get a hard error. But despite putting a 3 second pause in at the start of socketpair, and a 3 second...
kerravon86
Offline Send Email
Jun 28, 2009
2:05 am

... New idea - I tried doing the same operation in a loop. DLL_EXPORT int socketpair( int domain, int type, int protocol, int socket_vect { int i; for (i = 0;...
kerravon86
Offline Send Email
Jun 28, 2009
4:30 am

... Ok.. You're right.. The locking won't help here.. and it's actually unnecessary. I misinterpreted what a bind to port 0 meant. A bind to port 0 on an...
Ivan Warren
ivan_warhead...
Offline Send Email
Jun 28, 2009
10:01 am

... Even with a 10 second pause after a failure, I still got 16 out of 100 failures. The failures are less batched, but still sometimes batched. It's difficult...
kerravon86
Offline Send Email
Jun 28, 2009
5:14 pm

... "kerravon86" <kerravon86@...> wrote: - - - snipped - - - ... - - - snipped - - - If you haven't put on Vista SP2, you can check for root-kits with: ...
somitcw
Offline Send Email
Jun 28, 2009
10:47 pm

... I have Vista automatic updates on, and I run AVG Free, and I don't install much software. I don't think it's likely to be a virus etc. BFN. Paul....
kerravon86
Offline Send Email
Jun 28, 2009
10:58 pm

... "kerravon86" <kerravon86@...> wrote: - - - snipped - - - ... That is good but don't expect full protection from trojans, worms, viruses, root-kits,...
somitcw
Offline Send Email
Jun 28, 2009
11:37 pm
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help