[Chilli] chilli_redir hung on reading from unavailable socket

Wichert Akkerman wichert at wiggy.net
Sun Jun 13 12:17:46 UTC 2010


r345 worked flawlessly for 4 days, but unfortunately showed the same 
symptom today:

read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)
read(12, 0x8e31350, 5)                  = -1 EAGAIN (Resource 
temporarily unavailable)

as you can see the strace is very similar, but has two differences: 
there is no time(NULL) call in between the read() calls, and this is a 
different fd (12, while I was seeing 25 before).


On 2010-6-8 09:17, David Bird wrote:
> Btw, the problem was reproducible (without waiting) by telneting to
> https://uamasliasip/ and just hit<enter>. Previously, this would start
> the looping on read() as it attempts ssl negotiation.
>
> On Tue, 2010-06-08 at 09:13 +0200, Wichert Akkerman wrote:
>> On 6/7/10 12:19 , David Bird wrote:
>>> See revision 345. There was an issue when using chilli_redir and openssl
>>> and looping instead of returning during ssl accept. chilli_redir handles
>>> UAM connections asynchronously, whereas when you don't compile with
>>> --enable-chilliredir connections are handled by a forked process (and
>>> hence will block on accept/read/write).
>>
>> Great! I've deployed r345 last night so I should know within 2-3 days of
>> this helped.
>>
>> Wichert.
>> _______________________________________________
>> Chilli mailing list
>> Chilli at coova.org
>> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
>
>


-- 
Wichert Akkerman <wichert at wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.


More information about the Chilli mailing list