Comments (4)
If it's not showing any messages, it means the connection is never being received by the IO::Socket::INET library. I'll try it out next week and see if I can figure it out.
from http-easy.
I cannot duplicate this issue, as it works fine for me.
The output of of ApacheBench:
novus@serenity[3]:~$ ab http://localhost:8080/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software:
Server Hostname: localhost
Server Port: 8080
Document Path: /
Document Length: 11 bytes
Concurrency Level: 1
Time taken for tests: 0.032 seconds
Complete requests: 1
Failed requests: 0
Write errors: 0
Total transferred: 56 bytes
HTML transferred: 11 bytes
Requests per second: 31.54 [#/sec] (mean)
Time per request: 31.708 [ms] (mean)
Time per request: 31.708 [ms] (mean, across all concurrent requests)
Transfer rate: 1.72 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 32 32 0.0 32 32
Waiting: 32 32 0.0 32 32
Total: 32 32 0.0 32 32
The output from test.p6:
novus@serenity[1]:http-easy$ perl6 test/test.p6
[2012-10-15T22:30:52Z] Started HTTP server.
[2012-10-15T22:31:02Z] Client connection received.
[2012-10-15T22:31:02Z] GET / HTTP/1.0
Host: localhost:8080
User-Agent: ApacheBench/2.3
Accept: */*
[2012-10-15T22:31:02Z] Finished parsing headers.
What version of Rakudo are you running, and on what OS? For comparison, here's my information.
novus@serenity[0]:~$ perl6 --version
This is perl6 version 2012.09.1-28-gaa254e1 built on parrot 4.4.0 revision RELEASE_4_4_0
novus@serenity[0]:~$ uname -a
Linux serenity 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
novus@serenity[0]:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
In case it is hardware related (I doubt it, but you never know), here is the output of cpuinfo and meminfo:
novus@serenity[0]:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
stepping : 9
microcode : 0x10
cpu MHz : 3000.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips : 7020.70
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
... snipped out the above duplicated 7 more times with different 'processor' ids ...
novus@serenity[0]:~$ cat /proc/meminfo
MemTotal: 32833540 kB
MemFree: 29298344 kB
Buffers: 254852 kB
Cached: 840024 kB
SwapCached: 0 kB
Active: 2475640 kB
Inactive: 612380 kB
Active(anon): 1994356 kB
Inactive(anon): 11076 kB
Active(file): 481284 kB
Inactive(file): 601304 kB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 140 kB
Writeback: 0 kB
AnonPages: 1993212 kB
Mapped: 163404 kB
Shmem: 12284 kB
Slab: 181180 kB
SReclaimable: 145628 kB
SUnreclaim: 35552 kB
KernelStack: 3744 kB
PageTables: 29268 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 16416768 kB
Committed_AS: 4334528 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 463128 kB
VmallocChunk: 34359268860 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 67584 kB
DirectMap2M: 32337920 kB
from http-easy.
I'm on Mac OS 10.7.5 Lion, Rakudo Star 2012.09.
After some research I found out that it was AB fault:
http://superuser.com/questions/323840/apache-bench-test-erroron-os-x-apr-socket-recv-connection-reset-by-peer-54
Tested it on another machine with Mac OS 10.8.2 Mountain Lion and it indeed works fine.
I'm sorry about taking your time with this issue.
from http-easy.
No worries, this issue led to me adding a new project, https://github.com/supernovus/web-benchmarks which I may not done if you hadn't reintroduced 'ab' into my brain (I used it many moons ago, but had forgotten about it.) So I'd say it was not a waste of time, but a valuable side-path instead :-)
from http-easy.
Related Issues (14)
- recv() is not guaranteed to work the way it is used in this module HOT 3
- POST with file uploads is broken HOT 4
- Infinite wait for response on 2013.05 Rakudo Star RC HOT 4
- No tests HOT 1
- No such method 'decode' for invocant of type 'Any' HOT 2
- doesn't die if port is already bound HOT 3
- Closing connection without returning any data back / POSTDATA questions. HOT 3
- mutlipart/form-data and Chunked transfer encoding HOT 1
- Use of uninitialized value of type Any in numeric context HOT 2
- Example does not work
- panda installation error... HOT 2
- Invalid operation on binary string HOT 3
- Server stalled HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-easy.