Problems with TCPServer on Solaris 8 (may be my fault)

-----BEGIN PGP SIGNED MESSAGE-----

Hello all,

I am having issues with the TCPServer class on Solaris 8. When the port that the program is listening on is “portscanned” by nmap I get the following error and the program dies:

“in `accept’: Software caused connection abort (Errno::ECONNABORTED)”

The same code runs fine on my Linux machines (Redhat 7.3, ruby 1.6.7). I have tried ruby versions 1.6.7 and 1.6.8 and have even tried the 1.8.0 preview, all with the same results.

Do I need to write some more code to handle this, or is this a known issue with Solaris?

I am kinda new to Ruby, so this may be my fault. (started coding a few weeks ago with the help of “Ruby in a Nutshell” and the online version of the “pickaxe book”)

I would be happy to post some code if it would help, although you may laugh at it :slight_smile: .

Thanks in advance for your help,

scp

Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2

Big $$$ to be made with the HushMail Affiliate Program:
https://www.hushmail.com/about.php?subloc=affiliate&l=427

If a TCPServer expert answers this post; I have not been able to
select' which network card when using TCPServer, it defaults to index one oreth0’. How can I force it to use `eth1’ instead? Most of my
servers have dual nics, so I can’t use TCPServer for most of my work.
It crashes winXP.

···


ed

scp@hushmail.com wrote:

-----BEGIN PGP SIGNED MESSAGE-----

Hello all,

I am having issues with the TCPServer class on Solaris 8. When the port that the program is listening on is “portscanned” by nmap I get the following error and the program dies:

“in `accept’: Software caused connection abort (Errno::ECONNABORTED)”

The same code runs fine on my Linux machines (Redhat 7.3, ruby 1.6.7). I have tried ruby versions 1.6.7 and 1.6.8 and have even tried the 1.8.0 preview, all with the same results.

That’s peculiar. I run TCPServer on Solaris 6, 8 and 9 with no problem.

JOOC, what compiler was used to build Ruby on that machine? Could this be a Sun cc thing? We always use gcc here.

Please post some code. We promise not to laugh.

Regards,

Dan