Skip to content

Instantly share code, notes, and snippets.

@qtxie
Created March 25, 2022 01:48
Show Gist options
  • Save qtxie/d438036001d73d6bd273f5495381fc81 to your computer and use it in GitHub Desktop.
Save qtxie/d438036001d73d6bd273f5495381fc81 to your computer and use it in GitHub Desktop.
log1
qt@DESKTOP-M49UILA:~$ ./console castr-open-url/open-url.red
epoll_ctl fd: 5 op: 1 evts: 80000001
tls
tls://140.82.121.4:443
tls/open
tls client
socket/bind
epoll_ctl fd: 6 op: 1 evts: 80000004
cnt: 1
iocp: 32
check-connect
val: 0
tls/create
tls/negotiate
errno: 11
epoll_ctl fd: 6 op: 3 evts: 80000001
update-td: 9220 1
wait done: 1
cnt: 1
iocp: 32
tls/negotiate
errno: 11
epoll_ctl fd: 6 op: 3 evts: 80000001
update-td: 9221 1
wait done: 1
cnt: 1
iocp: 32
tls/negotiate
epoll_ctl fd: 6 op: 2 evts: 00002405
=== Client event: connect
connect
{GET / HTTP/1.1^M^/Accept-Charset: utf-8^M^/Accept-Encoding: gzip^M^/Connection: close^M^/Host: 140.82.121.4^M^/^M^/}
TLS/insert
root: 3771/6546, runs: 0, mem: 2319980 => 1977188, mark: 1.1ms, sweep: 1.3ms
socket/send
iocp/write-io
6 00003400 103
SSL_write 092458E0 F5C0801C 103
n: 103
iocp/post: 4
queue/push: 1
TLS/insert done
wait done: 1
cnt: 1
iocp: 512
queue/take: 0
pluse event: 4
=== Client event: wrote
wrote
SSL_read 092458E0 F5A0021C 16480
n: -1
n: 2
check errors 2
check errors finish
socket/recv -1 state: 13312
epoll_ctl fd: 6 op: 1 evts: 80000001
wait done: 1
cnt: 1
iocp: 4
read-io in wait fd: 00000006
SSL_read 092458E0 F5A0021C 16480
n: -1
n: 2
check errors 2
check errors finish
read-io in wait: -1
wait done: 1
cnt: 1
iocp: 4
read-io in wait fd: 00000006
SSL_read 092458E0 F5A0021C 16480
n: -1
n: 2
check errors 2
check errors finish
read-io in wait: -1
wait done: 1
cnt: 1
iocp: 4
read-io in wait fd: 00000006
SSL_read 092458E0 F5A0021C 16480
n: 103
read-io in wait: 103
=== Client event: read
read
** READ **
binary
103
SSL_read 092458E0 F5A0021C 16480
n: 0
n: 6
check errors 6
check errors finish
socket/recv 0 state: 13313
iocp/post: 2
queue/push: 1
wait done: 1
cnt: 1
iocp: 512
queue/take: 0
pluse event: 2
=== Client event: close
close
tls/close
close port: 091CD580 1
epoll_ctl fd: 6 op: 2 evts: 00003501
close port done
native tls free handle 13569 00000006
socket/close
socket/close done
native tls free handle done
tls/close done
wait done: 0
tls/close
close port: 00000000 0
close port done
tls/close done
get.key connection
none
** redirection **
https://github.com/
tls://github.com/
tls
tls://github.com/
tls/open
socket/send
iocp/write-io
6 00000000 28
iocp/post: 4
queue/push: 1
cnt: 1
iocp: 512
queue/take: 0
socket/recv -1 state: 0
epoll_ctl fd: 6 op: 1 evts: 80000001
wait done: 1
cnt: 1
iocp: 4
read-io in wait fd: 00000006
read-io in wait: 54
parse-data
DNS resolved: 20.205.243.166
close port: 091C67B0 1
epoll_ctl fd: 6 op: 2 evts: 00000001
close port done
tcp client
socket/bind
epoll_ctl fd: 7 op: 1 evts: 80000004
wait done: 1
cnt: 1
iocp: 32
check-connect
val: 0
=== Client event: connect
connect
{GET / HTTP/1.1^M^/Accept-Charset: utf-8^M^/Accept-Encoding: gzip^M^/Connection: close^M^/Host: github.com^M^/^M^/}
TLS/insert
socket/send
iocp/write-io
7 00000404 101
iocp/post: 4
queue/push: 1
TLS/insert done
wait done: 1
cnt: 1
iocp: 512
queue/take: 0
pluse event: 4
=== Client event: wrote
wrote
socket/recv -1 state: 1028
epoll_ctl fd: 7 op: 3 evts: 80000005
wait done: 1
cnt: 1
iocp: 4
wait done: 1
cnt: 1
iocp: 4
read-io in wait fd: 00000007
read-io in wait: 0
=== Client event: close
close
tcp/close
close port: 0925D3F0 1
epoll_ctl fd: 7 op: 2 evts: 00000405
close port done
socket/close
socket/close done
wait done: 0
tls/close
close port: 00000000 0
close port done
tls/close done
none
qt@DESKTOP-M49UILA:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment