From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: "9front@9front.org" <9front@9front.org>
Subject: bug? in /sys/src/9/port/devtls.c
Date: Thu, 22 May 2014 18:06:24 +0900 [thread overview]
Message-ID: <03EEDEF0-8163-4295-A52D-3B9898D3155A@ar.aichi-u.ac.jp> (raw)
Hello,
I found garbage messages in /sys/log/http that comes from my web server Pegasus.
#
# /sys/log/http
#
ar May 22 15:08:41 8006 123.125.71.96 plan9 GET / HTTP/1.1
ar May 22 15:08:41 8006 123.125.71.96 plan9 sent /doc/index.html
ar May 22 15:08:44 error: tlsServer certificate=/sys/lib/tls/cert: i/o on hungup channel
ar May 22 15:08:44 error: tlsServer certificate=/sys/lib/tls/cert: devtls expected ver=301, saw (len=20037) type=43 ver=4f4e 'CONNE\x14�\x11��,'
term% pwd
/usr/arisawa/src/Pegasus/pegasus-2.7/httpd
term% g tlsServer
httpd.c:436: data = tlsServer(data, &conn);
httpd.c:438: syslog(0, HTTPLOG, "error: tlsServer certificate=%s: %r", certificate);
term%
/sys/src/9/port/devtls.c
if(ver != tr->version && (tr->verset || ver < MinProtoVersion || ver > MaxProtoVersion))
rcvError(tr, EProtocolVersion, "devtls expected ver=%x%s, saw (len=%d) type=%x ver=%x '%.12s'",
tr->version, tr->verset?"/set":"", len, type, ver, (char*)header);
I suspect string in "header" is not null terminated.
Kenji Arisawa
reply other threads:[~2014-05-22 9:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03EEDEF0-8163-4295-A52D-3B9898D3155A@ar.aichi-u.ac.jp \
--to=arisawa@ar.aichi-u.ac.jp \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).