2010-10-21, 11:41
PhracturedBlue Wrote:This should be possible, though it is beyond the scope of my current patch. I'm not sure there is much gain. You can't ask myth for its protocol number before connecting, so you only save one connection attempt by caching the version. A static variable would be really crude, but likely trivial solution for this.
Yes, I was thinking something like a static variable as well. The gain is not seeing lots of errors in the mythbackend.log file due to a protocol version mismatch on connection. Many people think that the way XBMC is connecting to the backend is broken because of the errors in the mythbackend.log file. Reducing the number of errors in the log to just one per XBMC usage session would help mitigate that and be one less ping / pong per connection setup.