Re: [PATCH] libecasoundc: retry eci_impl_fd_read() even if poll timeout (was: Re: eci_init() fails on MIPS)

Alessandro Ghedini <[email protected]> Thu, 6 Feb 2014 22:52:54 +0100
Newsgroups gmane.comp.audio.ecasound.general
Message-ID <20140206215254.GA12683@kronk>
On mar, feb 04, 2014 at 09:44:27 +0200, Kai Vehmanen wrote:
> >So, a possible solution would be to retry the eci_impl_fd_read() even if the
> >timeout has expired. That part of the code is already run in a loop for, at
> >most, ECI_MAX_RESYNC_ATTEMPTS times, so there should be no risk in getting stuck
> >there.
> 
> That probably fixes it, but as the function is called sometimes with
> a large timeout (30sec), combined with 9 retries, it'll cause quite
> long delays to get notified of errors when something goes wrong.
> 
> Could you try bumping ECI_READ_TIMEOUT_MS to 15000 and see if that
> helps...?

Yes, that works as well. I'm going to upload a new ecasound Debian package with
this new timer value and see how it goes.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk

_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS9AQzAAoJEK+lG9bN5XPL6NgP+gOiCmLlOKiaZIGfrMwMCii6
H4Rhf8tl3trYkdgWIBhwdMNbJ8/AaGgFdlWzTovYDo7KWLHPMQPiS2OV8Lsvd4gf
vZX6B0ArC28lfwLPmWXasHPakU5CGp/N43PAHlI2LAkI1ecPrCzt5Hivp5th9rGc
VN+Zf2MUtEueZmPbBLoBL8p1HDdPa/dUzmWINyM36nCyZ0gILIxJQ2pThfdFiDPr
dSV/wGlACrhJ7V5qwnh0oxFTRZELAVJqt4gDTpQXXHuGW4/w1eMi7MNstzEr25Jd
U2VwlTLURn2jO4dM5L1Sc949UXFG3/3348LD83aYymAfBPNXGvXYJHdApA2BD/ae
StRfscjaYxCqxTjbtByzatd42VAEyMjQD0TEdnC7hHyFlM9Ge5vAaMA2gjT/7HAE
X7tU0mERP6U5pVyAxucGLh7DpYevGQ17yz0UOKVDq5ec3Vs91Ju/EovIvbhln24I
4Q1SA+cwSv8Hn0yKHQkWI+hKbdc9KGbwOfZJzQkt1tTHolr2+35SohoHPkVt51D0
9uesOHDgEVHN7b1OwcAr5Ou6IMqGvJu1YMYdasYONREHJ/iSWD2C2sbxFXmeyu/b
acZ4Xdo5d32H4MQq/fb4LrYmjvAocgKY7aCqrbV9sW0Tfv/era9Ye5UTaBQb7Zhm
pkYplXrH4/W3vTCW4tUL
=8/Dk
-----END PGP SIGNATURE-----