Closed GoogleCodeExporter closed 9 years ago
The http handling in go9p is broken and needs to be rethought. It was written
when the http handler accepted 'nil' funcs and allowed things to be
unregistered (now it panics). serve_http will have to be rewritten to do that
instead of relying on package http.
Original comment by mirtchov...@gmail.com
on 10 Jan 2013 at 7:30
Perhaps the right thing to do is simply rip out the http stuff from clnt for
now? linking the http package into anything that wants a 9p client smells like
feature creep to me, and I managed to hit this bug without even knowing the
http stuff was there.
Thoughts?
Original comment by i...@zenhack.net
on 11 Jan 2013 at 11:12
Original comment by lion...@gmail.com
on 12 Jan 2013 at 5:44
Fixed in two ways: fixed the original bug, http doesn't get included by default.
Original comment by lion...@gmail.com
on 12 Jan 2013 at 6:02
i believe the fundamental bug that you can't call http.HandleFunc with a nil
func (i.e., the library panics if you unregister a client) is still there.
we'll have to do our own basic mux-ing replacing DefaultServerMux which does
the panic-ing.
Original comment by mirtchov...@gmail.com
on 12 Jan 2013 at 6:11
Original issue reported on code.google.com by
i...@zenhack.net
on 30 Dec 2012 at 3:23Attachments: