Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: error/runtime.t hangs on Win32: msg#00205

apache.mod-perl.devel

Subject: Re: error/runtime.t hangs on Win32

On Wed, 26 May 2004, Stas Bekman wrote:

> Steve Hay wrote:
> > Using the current CVS w/ Apache 2.0.49 and Perl 5.8.4 I find that
> > error/runtime.t hangs.
> >
> > Running "perl t/TEST -verbose error/runtime" starts up the server ok and
> > outputs
> >
> > t\error\runtime....1..10
> > # Running under perl version 5.008004 for MSWin32
> > # Current time local: Wed May 26 16:08:44 2004
> > # Current time GMT: Wed May 26 15:08:44 2004
> > # Using Test.pm version 1.24
> >
> > but then does nothing else.
> >
> > I uncommented the line "t_debug($res->content);" from the test file, but
> > it doesn't produce any more output.
> >
> > Any ideas?
>
> Yup, most likely it hangs in response/TestError/runtime.pm:
>
> # fails because of the timeout set earlier in the handler
> sub mp_error {
> my $socket = shift;
> $socket->recv(SIZE);
> }
>
> when it reads from the socket. That means that sockets timeout setting or
> reading is broken on windows in APR.
>
> The handler starts with:
>
> $socket->timeout_set(1);
>
> which sets the timeout to 1 micro second, ensuring that
> $socket->recv() should fail and return almost immediately.
> Well 1 microsecond later :)
>
> When I was writing tests for the new exception system I
> didn't have any other APIs to use yet. I need to review
> that and see if I can find something that does work
> crossplatform.
>
> Regardless, it'd be nice to figure out what's wrong with
> that on windows and hopefully get it fixed in APR.

I may have missed some of this thread, and the related
apr-dev discussion (we're going through a particularly nasty
time at work), but I found that the t/error/runtime tests
all pass on Win32 with
$socket->timeout_set(0);

--
best regards,
randy


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation