Skip to content

Instantly share code, notes, and snippets.

@makoto
Created July 24, 2010 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makoto/489070 to your computer and use it in GitHub Desktop.
Save makoto/489070 to your computer and use it in GitHub Desktop.
# uname -a
Linux 2.6.32-305-ec2 #9-Ubuntu SMP Thu Apr 15 04:14:01 UTC 2010 i686 GNU/Linux
$./ws_client -c 29
c has value 29
i: +0 m: {time:692000}true
i: +1 m: {time:428000}true
i: +2 m: {time:377000}true
i: +3 m: {time:30207000}true
i: +4 m: {time:402000}true
i: +5 m: {time:337000}true
i: +6 m: {time:352000}true
i: +7 m: {time:411000}true
i: +8 m: {time:348000}true
i: +9 m: {time:336000}true
i: +10 m: {time:361000}true
i: +11 m: {time:3209000}true
i: +12 m: {time:325000}true
i: +13 m: {time:316000}true
i: +14 m: {time:328000}true
i: +15 m: {time:298000}true
i: +16 m: {time:303000}true
i: +17 m: {time:311000}true
i: +18 m: {time:318000}true
i: +19 m: {time:342000}true
i: +20 m: {time:322000}true
i: +21 m: {time:327000}true
i: +22 m: {time:3174000}true
i: +23 m: {time:328000}true
i: +24 m: {time:313000}true
i: +25 m: {time:312000}true
i: +26 m: {time:306000}true
i: +27 m: {time:312000}panic: Dial failed: unexpected EOF
panic PC=0xb76b32f8
runtime.panic+0x97 /mnt/makoto/go/src/pkg/runtime/proc.c:1012
runtime.panic(0x0, 0xb76b3328)
wsbench.do_test+0x112 /mnt/makoto/wsbench/go/wsbench/wsbench.go:63
wsbench.do_test(0x80d896c, 0xb74e57b0, 0x1b)
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
goroutine 35 [3]:
runtime.entersyscall+0x36 /mnt/makoto/go/src/pkg/runtime/proc.c:558
runtime.entersyscall()
syscall.socketcall+0x5 /mnt/makoto/go/src/pkg/syscall/asm_linux_386.s:91
syscall.socketcall()
syscall.Shutdown+0x58 /mnt/makoto/go/src/pkg/syscall/syscall_linux_386.go:147
syscall.Shutdown(0xd, 0x8, 0x2, 0x0)
net.*netFD·Close+0x50 /mnt/makoto/go/src/pkg/net/fd.go:358
net.*netFD·Close(0x8, 0x2, 0xb77ab018)
net.*TCPConn·Close+0x4e /mnt/makoto/go/src/pkg/net/tcpsock.go:105
net.*TCPConn·Close(0xb76d0180, 0xb7689e01, 0x0)
websocket.Handler·ServeHTTP+0xd0 /mnt/makoto/go/src/pkg/websocket/server.go:65
websocket.Handler·ServeHTTP(0xb74e5940, 0xb7724500, 0xb74e5940, 0x1)
http.*ServeMux·ServeHTTP+0x21c /mnt/makoto/go/src/pkg/http/server.go:549
http.*ServeMux·ServeHTTP(0x8048800, 0xb76cccc0, 0xb776e070, 0x5)
http.*Conn·serve+0x73 /mnt/makoto/go/src/pkg/http/server.go:330
http.*Conn·serve(0xb76aa800, 0xb76cccc0)
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
goroutine 5 [3]:
runtime.entersyscall+0x36 /mnt/makoto/go/src/pkg/runtime/proc.c:558
runtime.entersyscall()
syscall.Syscall6+0x5 /mnt/makoto/go/src/pkg/syscall/asm_linux_386.s:40
syscall.Syscall6()
syscall.EpollWait+0x71 /mnt/makoto/go/src/pkg/syscall/zsyscall_linux_386.go:146
syscall.EpollWait(0x100, 0x6, 0xb77538c0, 0x1, 0xffffffff, ...)
net.*pollster·WaitFD+0x111 /mnt/makoto/go/src/pkg/net/fd_linux.go:116
net.*pollster·WaitFD(0x6, 0xb77538c0, 0x1, 0x1, 0xffffffff, ...)
net.*pollServer·Run+0xc9 /mnt/makoto/go/src/pkg/net/fd.go:239
net.*pollServer·Run(0xb76aa890, 0x0)
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
goroutine 4 [3]:
runtime.entersyscall+0x36 /mnt/makoto/go/src/pkg/runtime/proc.c:558
runtime.entersyscall()
syscall.Syscall+0x5 /mnt/makoto/go/src/pkg/syscall/asm_linux_386.s:14
syscall.Syscall()
syscall.Write+0x59 /mnt/makoto/go/src/pkg/syscall/zsyscall_linux_386.go:560
syscall.Write(0x4, 0x5, 0x80af620, 0x1, 0xb76898e8, ...)
os.*File·Write+0x77 /mnt/makoto/go/src/pkg/os/file.go:126
os.*File·Write(0x5, 0x80af620, 0x1, 0x1, 0xb74e5768, ...)
net.*pollServer·Wakeup+0x67 /mnt/makoto/go/src/pkg/net/fd.go:274
net.*pollServer·Wakeup(0xb76ab6c0, 0x80af620)
net.*pollServer·WaitRead+0x3c /mnt/makoto/go/src/pkg/net/fd.go:278
net.*pollServer·WaitRead(0xb76ab700, 0xb76d0f00, 0x0)
net.*netFD·accept+0x2c2 /mnt/makoto/go/src/pkg/net/fd.go:535
net.*netFD·accept(0xb76ab700, 0xb76d0f00, 0x0, 0x0, 0xb, ...)
net.*TCPListener·AcceptTCP+0x53 /mnt/makoto/go/src/pkg/net/tcpsock.go:240
net.*TCPListener·AcceptTCP(0xb76d0f00, 0x8099108, 0x0, 0x0)
net.*TCPListener·Accept+0x36 /mnt/makoto/go/src/pkg/net/tcpsock.go:250
net.*TCPListener·Accept(0xb76aa858, 0xb770cfc8, 0x0, 0x0, 0xb74e5940, ...)
http.Serve+0x6b /mnt/makoto/go/src/pkg/http/server.go:592
http.Serve(0xb76aa858, 0x0, 0x0, 0x0, 0x0, ...)
http.ListenAndServe+0x84 /mnt/makoto/go/src/pkg/http/server.go:637
http.ListenAndServe(0xb76ab660, 0xb76aa858, 0xb76ab640, 0xb76aa800, 0xb76ab660, ...)
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
goroutine 9 [4]:
gosched+0x66 /mnt/makoto/go/src/pkg/runtime/proc.c:542
gosched()
runfinq+0x48 /mnt/makoto/go/src/pkg/runtime/mgc0.c:368
runfinq()
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
goroutine 1 [4]:
gosched+0x66 /mnt/makoto/go/src/pkg/runtime/proc.c:542
gosched()
chanrecv+0x373 /mnt/makoto/go/src/pkg/runtime/chan.c:330
chanrecv(0xb76cc330, 0xb76ab760, 0x2, 0x2)
runtime.chanrecv1+0x37 /mnt/makoto/go/src/pkg/runtime/chan.c:432
runtime.chanrecv1(0xb76cc300, 0xb76aed68)
wsbench.*WSBench·Run+0x125 /mnt/makoto/wsbench/go/wsbench/wsbench.go:96
wsbench.*WSBench·Run(0xb76cc300, 0x0)
main.main+0x265 /mnt/makoto/wsbench/go/wsbench/ws_client.go:33
main.main()
mainstart+0xf /mnt/makoto/go/src/pkg/runtime/386/asm.s:83
mainstart()
goexit /mnt/makoto/go/src/pkg/runtime/proc.c:145
goexit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment