No, that won't break anything at all.

That means we're using level triggered as opposed to edge triggered 
polling.
With edge triggered you only get notified when the availability of a 
socket has changed. With level triggered you get notified on every 
available socket, even if you've been notified about it before (but 
failed to read it).

What was happening was epoll tells Twisted that the socket is ready to 
read/write to, but for whatever reason it doesn't get looked at 
straight away. The kernel doesn't mention that socket in the next poll, 
so Twisted doesn't touch it, so it doesn't get mentioned, and so on.

I'll have to look deeper into Twisted to see what made this work on my 
system but break on others.

What Twisted version are you using the epoll reactor with?

---

James



On 16/09/2005, at 5:21 AM, Gonzalo Barrio wrote:

> James, this is what I did to make the epoll reactor work, take a look
> and tell me if this is going to break something else.
> In the file epollreactor.py I change the Edge Triggered on the 
> POLL_READ
> and POLL_WRITE constants.
>
> This lines:
> POLL_READ = epoll.EPOLLIN | epoll.EPOLLPRI | epoll.EPOLLET
> POLL_WRITE = epoll.EPOLLOUT | epoll.EPOLLET
>
> to this ones:
> POLL_READ = epoll.EPOLLIN | epoll.EPOLLPRI
> POLL_WRITE = epoll.EPOLLOUT
>
> James ?
>
>
> Gonzalo Barrio.
>
>
> Pedro Melo wrote:
>
>> Hi,
>>
>> On Sep 14, 2005, at 9:11 PM, Gonzalo Barrio wrote:
>>
>>> Only one more question, are you seeing this error on your server ?
>>>
>>> /usr/lib/python2.3/site-packages/twisted/internet/tcp.py:216:
>>> UserWarning: SSL connection shutdown possibly unreliable, please 
>>> upgrade
>>> to ver 0.XX
>>>   "please upgrade to ver 0.XX", category=UserWarning)
>>
>>
>> hmms....
>>
>> I saw that error somewhere today, but i'm not seeing it now.
>>
>> I'll search my logs tomorow.
>>
>> Best regards,
>> -- 
>> HIId: Pedro Melo
>> SMTP: [EMAIL PROTECTED]
>> XMPP: [EMAIL PROTECTED]
>>
>> _______________________________________________
>> py-transports mailing list
>> py-transports@blathersource.org
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>

Reply via email to