I got it running. There was a $self-> in the setTimer line missing. I
inserted a log command to check:
Code:
--------------------
# After reading headers, some callers may want to continue and
# read the body
sub read_body {
my $self = shift;
my $args = shift;
$self->socket->set( passthrough => [ $self, $args ] );
# Timer in case the server never sends any body data
my $timeout = $self->timeout || $prefs->get('remotestreamtimeout');
Slim::Utils::Timers::setTimer( $self->socket, Time::HiRes::time() + $timeout,
\&_http_read_timeout, $self, $args );
$log->debug("Set read body timeout to " . $timeout);
Slim::Networking::Select::addError( $self->socket, \&_http_socket_error );
Slim::Networking::Select::addRead( $self->socket, \&_http_read_body );
}
--------------------
Now it works!!! I cannot produce any dead connections any more. They are
all closed after the timeout.
Awesome. Thanks, bpa and philippe_44 for helping to analyze and fix
this. Can you check in this change to the repository of LMS 8?
------------------------------------------------------------------------
schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
View this thread: http://forums.slimdevices.com/showthread.php?t=112774
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter