[mythtv] [mythtv-commits] mythtv branch master updated by stuartm. v0.28-pre-2290-g0a0872e

John Pilkington J.Pilk at tesco.net
Sat Oct 11 12:07:58 UTC 2014


On 11/10/14 02:05, Git Repo Owner wrote:
> The branch, master has been updated on the
> mythtv repository by gitolite user stuartm.
>         via  0a0872ea0dc15690446455819f569a38cf202642 (commit)
>        from  2c07537d2367850db0eafdc40c67546425790455 (commit)
>
> Those revisions listed above that are new to this repository have
> not appeared on any other notification email; so we list those
> revisions in full, below.
>
> - Log -----------------------------------------------------------------
> commit 0a0872ea0dc15690446455819f569a38cf202642
> Author:    Stuart Morgan <smorgan at mythtv.org> at Sat, 11 Oct 2014 00:59:11 +0100
> Committer: Stuart Morgan <smorgan at mythtv.org> at Sat, 11 Oct 2014 02:05:48 +0100
> URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=0a0872ea0dc15690446455819f569a38cf202642
>
> HTTP: Fix the socket being closed before all bytes were read by client
> We were writing to the QTcpSocket and then calling
> waitForBytesWritten() with the assumption that this would only return
> once all the written bytes had been read from the socket by the
> client. This wasn't actually the case and this could lead to the
> socket being closed before the full response was sent.
>
> Now we wait until all pending data has been sent before closing the
> socket.
>
>
>
> -----------------------------------------------------------------------
>
> Summary of changes:
>   mythtv/libs/libmythupnp/httprequest.cpp |    1 -
>   mythtv/libs/libmythupnp/httpserver.cpp  |   17 +++++++++++++++++
>   2 files changed, 17 insertions(+), 1 deletions(-)
>

My system became almost completely unresponsive after applying this and 
enabling upnp on the tv.  Continuous disk activity, and the normal 
backend log output shows:

2014-10-11 11:59:43.295466 I  Scheduler: Seem to be woken up by USER
2014-10-11 11:59:43.548066 I  Bonjour: Service registration complete: 
name 'Mythbackend on presv5000' type '_mythbackend._tcp.' domain: 'local.'
2014-10-11 12:00:07.755319 I  BackendContext: Frontend 'presv5000' 
connected.
2014-10-11 12:00:48.439001 I  Starting process manager
2014-10-11 12:00:48.439063 I  Starting process signal handler
2014-10-11 12:00:48.439375 I  Starting IO manager (write)
2014-10-11 12:00:48.439470 I  Starting IO manager (read)
2014-10-11 12:00:57.950599 N  AutoExpire: CalcParams(): Max required 
Free Space: 1.0 GB w/freq: 15 min
2014-10-11 12:03:40.393601 I  MainServer: MainServer::HandleAnnounce 
FileTransfer
2014-10-11 12:03:40.393615 I  MainServer: adding: presv5000 as a remote 
file transfer
2014-10-11 12:04:30.736433 I  MainServer: MainServer::HandleAnnounce 
FileTransfer
2014-10-11 12:04:30.736454 I  MainServer: adding: presv5000 as a remote 
file transfer
libdvdread: Encrypted DVD support unavailable.
libdvdread: Encrypted DVD support unavailable.
2014-10-11 12:04:31.139279 I  MainServer: MainServer::HandleAnnounce 
FileTransfer
2014-10-11 12:04:31.139295 I  MainServer: adding: presv5000 as a remote 
file transfer
libdvdread: Encrypted DVD support unavailable.
2014-10-11 12:04:31.407372 I  MainServer: MainServer::HandleAnnounce 
FileTransfer
2014-10-11 12:04:31.407389 I  MainServer: adding: presv5000 as a remote 
file transfer
libdvdread: Encrypted DVD support unavailable.
2014-10-11 12:04:31.702820 I  MainServer: MainServer::HandleAnnounce 
FileTransfer
2014-10-11 12:04:31.702835 I  MainServer: adding: presv5000 as a remote 
file transfer
2014-10-11 12:07:46.725998 W  WriteBlock(): Failed to write 3277 bytes 
to socket, socket state (0)
2014-10-11 12:08:08.799197 W  WriteBlock(): Failed to write 758726656 
bytes to socket, socket state (0)
2014-10-11 12:09:56.915139 W  WriteBlock(): Failed to write 4647 bytes 
to socket, socket state (0)
2014-10-11 12:11:00.735804 W  WriteBlock(): Failed to write 381870585 
bytes to socket, socket state (0)
2014-10-11 12:11:00.735799 W  WriteBlock(): Failed to write 381870585 
bytes to socket, socket state (0)
2014-10-11 12:14:20.378601 W  WriteBlock(): Failed to write 543500793 
bytes to socket, socket state (0)
2014-10-11 12:16:17.355267 N  AutoExpire: CalcParams(): Max required 
Free Space: 1.0 GB w/freq: 15 min
2014-10-11 12:16:39.176723 W  WriteBlock(): Failed to write 10257 bytes 
to socket, socket state (0)
2014-10-11 12:19:46.295352 I  BackendContext: Frontend 'presv5000' 
disconnected.
2014-10-11 12:21:33.988270 W  WriteBlock(): Failed to write 773741049 
bytes to socket, socket state (0)
2014-10-11 12:21:54.450438 C  Received Terminated: Code 0, PID 3667, UID 
500, Value 0x00000000
2014-10-11 12:21:57.278059 N  MythBackend exiting
2014-10-11 12:23:36.834563 W  WriteBlock(): Failed to write 672319993 
bytes to socket, socket state (0)
2014-10-11 12:24:27.411991 E  TVRec[1]: TuningSignalCheck: SignalMonitor 
timed out
2014-10-11 12:25:31.700354 W  WriteBlock(): Failed to write 672319993 
bytes to socket, socket state (0)

On starting the frontend there was a request to update a schema but the 
main DB is still at 1331, protocol 83.  Looks as if it might have been 
the music DB, currently 1023.





More information about the mythtv-dev mailing list