2nd questions from PerlBal novice

Galtsev Igor gis at bytex.ru
Tue May 15 04:39:13 UTC 2007


Yes, I run the "make test" procedure now and it is failed.
Whether this problem has the decision?
What can you advise?

Igor Galtsev
P.S. below my execution log

# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-use.................ok
t/10-testharness.........ok
t/12-headers.............ok
t/15-webserver...........ok 1/15Error w/ sendfile: Invalid argument
t/15-webserver...........NOK 4/15
#   Failed test 'GET request'
#   at t/15-webserver.t line 61.
Error w/ sendfile: Invalid argument
t/15-webserver...........NOK 5/15
#   Failed test 'GET request'
#   at t/15-webserver.t line 64.
Error w/ sendfile: Invalid argument
t/15-webserver...........NOK 12/15
#   Failed test 'got the index file'
#   at t/15-webserver.t line 98.
#                   ''
#     doesn't match '(?-xism:foo bar baz)'
Error w/ sendfile: Invalid argument
t/15-webserver...........NOK 15/15
#   Failed test 'File with .. in name'
#   at t/15-webserver.t line 111.
# Looks like you failed 4 tests of 15.
t/15-webserver...........dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 4-5, 12, 15
        Failed 4/15 tests, 73.33% okay
t/17-webserver-concat....ok 1/20Error w/ sendfile: Invalid argument
t/17-webserver-concat....NOK 9/20
#   Failed test 'basic concat works'
#   at t/17-webserver-concat.t line 69.
#          got: ''
#     expected: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
# '
Error w/ sendfile: Invalid argument
t/17-webserver-concat....NOK 10/20
#   Failed test 'concat w/ directory'
#   at t/17-webserver-concat.t line 70.
#          got: ''
#     expected: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
# '
Error w/ sendfile: Invalid argument
t/17-webserver-concat....NOK 11/20
#   Failed test 'dup concat'
#   at t/17-webserver-concat.t line 71.
#          got: ''
#     expected: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# '
Error w/ sendfile: Invalid argument
# Looks like you failed 3 tests of 20.
t/17-webserver-concat....dubious
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 9-11
        Failed 3/20 tests, 85.00% okay
t/20-put.................ok
t/22-chunked-put.........ok 1/0# Writing: 500
# Writing: 5
# Writing: 5
# Writing: 5
# Writing: 100000
# Writing: 60000
# Writing: 1000
# Writing: 338485
t/22-chunked-put.........ok
t/30-reverseproxy........ok 10/26Didn't get a firstline in HTTP response.
Can't call method "header" on an undefined value at /usr/home/inst/Perlbal-1.57/blib/lib/Perlbal/Test/WebClient.pm line 166, <GEN8> line 18.
# Looks like you planned 26 tests but only ran 13.
# Looks like your test died just after 13.
t/30-reverseproxy........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 14-26
        Failed 13/26 tests, 50.00% okay
t/31-realworld...........ok 38/106Error w/ sendfile: Invalid argument
Didn't read 7 bytes.  Got 0. at /usr/home/inst/Perlbal-1.57/blib/lib/Perlbal/Test/WebServer.pm line 97, <GEN4> line 89.
Didn't get a firstline in HTTP response.
Can't call method "header" on an undefined value at /usr/home/inst/Perlbal-1.57/blib/lib/Perlbal/Test/WebClient.pm line 166, <GEN8> line 96.
# Looks like you planned 106 tests but only ran 40.
# Looks like your test died just after 40.
t/31-realworld...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 41-106
        Failed 66/106 tests, 37.74% okay
t/32-pipelining..........ok 4/12# separator length 2
# separator length 0
t/32-pipelining..........ok 9/12500 response!
t/32-pipelining..........ok
t/32-selector............ok 5/38^C

In this point test procedure was hang (suspend) for long time and only
Ctrl-C was canceled it.


BF> Does "make test" succeed for Sys-Syscall and Perlbal?
BF> I think it's a Sys-Syscall issue on FreeBSD.
BF> Brad Fitzpatrick

>> Hello and greetings all and everyone again!
>>
>> I have one more possible dummy questions.
>>
>> I have stand up Perlbal as web-server (OS FreeBSD 6.2).
>>
>> /etc/perlbal/perlbal.conf is
>>
>> CREATE SERVICE docs
>>   SET listen         = 0.0.0.0:5555
>>   SET role           = web_server
>>   SET docroot        = /usr/share/doc/
>>   SET dirindexing    = 1
>>   SET index_files    = index.html, index.php
>>   SET persist_client = on
>>   server aio_mode = ioaio
>> ENABLE docs
>>
>> CREATE SERVICE mgmt
>>   SET role   = management
>>   SET listen = 127.0.0.1:60000
>> ENABLE mgmt
>>
>> I was placed in the /usr/share/doc/ very simple file - index.html
>> contained 2 words:
>>
>> TEST DATA
>>
>> In the my browser (Opera 9.02) I try to connect to http:\\my_server:5555
>> and I expect to see this 2 words - TEST DATA.
>>
>> But I see - the blank page. And into the server's console I see 2
>> error messages:
>>
>> Error w/ sendfile: Invalid argument
>> Error w/ sendfile: Invalid argument
>>
>> I dont understand again - why I don see the content of the index.html
>> file. And in what sense and the plausible reason of these error messages?
>>
>> --
>> Many thanks you for a attention.
>> Igor Galtsev
>> mailto:gis at bytex.ru
>>
>>






More information about the perlbal mailing list