StuMc has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I'm new to this site and relatively new to perl, so first off would like to say hi!

I'm using HTTP::Server::Simple::CGI to serve up a simple form which then calls a shell script as an action. It all works fine except for users in one of our office sites. The form gets served and submitted ok, but then the process exits with the following:

Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.10.0/HTTP/Server/Simple.pm line 397. Bad arg length for Socket::sockaddr_family, length is 0, should be at least 2 at /usr/lib/perl5/site_perl/5.10.0/HTTP/Server/Simple.pm line 397

I'm not really doing anything special, I've just modified the example given with the docs slightly. I'm using perl v5.10.0 on SuSE Enterprise Server 11.3

Wondering if anyone has seen this before?

Thanks, Stu
  • Comment on Having problems with HTTP::Server::Simple::CGI

Replies are listed 'Best First'.
Re: Having problems with HTTP::Server::Simple::CGI
by hippo (Archbishop) on Mar 10, 2016 at 23:27 UTC

    IPv6, perhaps? You don't say which version of HTTP::Server::Simple you are running but the changelog shows a good few IPv6 related fixes in the last 15 months.

      Thanks. I'm using version 0.51. Was quite hopeful it had something to do with IPv6 as we have a mix of sites on v4 and v6, however, the site in question is still on v4 and other sites on v6 are working ok. Possibly have narrowed it down to browser - it seems users in that site are on ie9 where as all others are ie11.

      Not sure if theres anything further I can do really as I don't have any control of the browser versions.

      Thanks for the advice!

Re: Having problems with HTTP::Server::Simple::CGI
by poj (Abbot) on Mar 10, 2016 at 19:55 UTC

    Are all users on the same OS/browser/version ? If not, which are failing ?

    poj
      Thanks. I had originally thought all sites were on the same versions of everything, however in the problematic site they are a bit behind and still using ie9, where as all other sites are on ie11! Got some of them to test with Chrome and it seemed to be ok. Unfortunately I have no control over the browser versions :(
        I have no control over the browser versions

        In that case you may have to change the web server. Try Chrome in Incognito mode to see if the problem is related to this IE9

        poj