Message58944
| Author |
christian.heimes |
| Recipients |
christian.heimes, therve |
| Date |
2007年12月21日.13:07:27 |
| SpamBayes Score |
0.00059483276 |
| Marked as misclassified |
No |
| Message-id |
<1198242449.15.0.900760276086.issue1657@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> * the docstring of test_kqueue.py is wrong
Fixed
> * the tests are a bit light. It would be good the have a test like
> test_control_and_wait in test_epoll.
Does Twisted have additional tests? I agree that the tests are too light
weighted but I don't have spare time to write more tests. I may have
more time in a few days after xmas.
> * the kqueue_queue_control (and the pyepoll_poll) are now completely
> wrong! You should not limit to FD_SETSIZE, these 2 systems are there
> because they're able to handle for fds than that. Also, this buffer
> thing looks like a premature optimization. I'm unable to tell if it's
> correct or not.
I've seen the limitation in an example somewhere. I've read the specs
several times and I think you are right. I now use FD_SETSIZE as
sizehint for epoll() but I don't limit the amount of fds any more.
> * the NETDEV and related flags aren't defined under OS X 10.4. I
guess there are flags for freebsd, but kqueue should build on OS X too.
I'm using FreeBSD to test the kqueue interface. I can't tell if it's
working on Mac OS X. I've put the NETDEV related macros in an ifdef block.
The new patch replaces the FD_SETSIZE limitation and adds a richcompare
slot to kevent. Do we need an alternative constructor which creates an
epoll and kqueue object from a given fd? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年12月21日 13:07:29 | christian.heimes | set | spambayes_score: 0.000594833 -> 0.00059483276 recipients:
+ christian.heimes, therve |
| 2007年12月21日 13:07:29 | christian.heimes | set | spambayes_score: 0.000594833 -> 0.000594833 messageid: <1198242449.15.0.900760276086.issue1657@psf.upfronthosting.co.za> |
| 2007年12月21日 13:07:29 | christian.heimes | link | issue1657 messages |
| 2007年12月21日 13:07:27 | christian.heimes | create |
|