~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hippotatd: catch errors from request.finish in _req_cancel
[hippotat]
/
w3mstracetodump
diff --git
a/w3mstracetodump
b/w3mstracetodump
index
fdf28eb
..
907af4f
100755
(executable)
--- a/
w3mstracetodump
+++ b/
w3mstracetodump
@@
-2,8
+2,11
@@
# strace -s70000 -ot w3m ./form.html
# strace -s70000 -ot w3m ./form.html
-next unless s{^write\(7, "}{};
-next unless m/^POST|GET/..0;
+next unless
+ (m/^connect\((\d+),.*AF_INET/ and $fd = $1) ..
+ m/^close\($fd\)/;
+
+next unless s{^write\($fd, "}{};
s{", \d+\)\s+= \d+\n}{};
s{\\r}{\r}g;
s{\\n}{\n}g;
s{", \d+\)\s+= \d+\n}{};
s{\\r}{\r}g;
s{\\n}{\n}g;