Unsurprisingly, I generally have similar comments here as I did on basicproxy.cpp.  I haven't written them down, but please check for parallels.