Skip to content

Instantly share code, notes, and snippets.

package http2_test
import (
"crypto/tls"
"crypto/x509"
"net/http"
"net/http/httptest"
"testing"
"time"
(gdb) bt
#0 0x0000000000478186 in ?? ()
#1 0x0000000000476585 in runtime.morestack () at .goroot/1.21.1/src/runtime/asm_amd64.s:560
#2 0x000000000043a490 in runtime.netpoll (delay=<optimized out>, ~r0=...)
at .goroot/1.21.1/src/runtime/netpoll_kqueue.go:121
#3 0x000000000044633f in runtime.findRunnable (gp=<optimized out>, inheritTime=<optimized out>,
tryWakeP=<optimized out>) at .goroot/1.21.1/src/runtime/proc.go:3191
#4 0x0000000000448c56 in runtime.schedule () at .goroot/1.21.1/src/runtime/proc.go:3582
#5 runtime.park_m (gp=0xc000006ea0) at .goroot/1.21.1/src/runtime/proc.go:3745
#6 0x000000000047648e in runtime.mcall () at .goroot/1.21.1/src/runtime/asm_amd64.s:458
index 274f4fc..a6625f0 100644
--- a/src/uvw/handle.hpp
+++ b/src/uvw/handle.hpp
@@ -264,7 +264,7 @@ public:
* @return The file descriptor attached to the hande or a negative value in
* case of errors.
*/
- OSFileDescriptor fileno() const {
+ OSFileDescriptor fd() const {
uv_os_fd_t fd;
$ scc -f wide
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity Complexity/Lines
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Java 22 3911 798 651 2462 547 486.67
Go 20 5420 647 445 4328 654 316.26
Python 8 343 18 19 306 29 45.31
Markdown 6 689 136 0 553 0 0.00
Powershell 2 240 35 159 46 8 29.63
License 2 45 8 0 37 0 0.00
$ scc --no-complexity
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code
───────────────────────────────────────────────────────────────────────────────
Java 22 3911 798 651 2462
Go 20 5420 647 445 4328
Python 8 343 18 19 306
Markdown 6 689 136 0 553
License 2 45 8 0 37
Plain Text 2 31 7 0 24
$ scc
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
Java 22 3911 798 651 2462 547
Go 20 5420 647 445 4328 654
Python 8 343 18 19 306 29
Markdown 6 689 136 0 553 0
License 2 45 8 0 37 0
Plain Text 2 31 7 0 24 0