I got the onion router to work under windows!

Roger Dingledine arma at mit.edu
Wed Aug 6 18:38:01 UTC 2003


On Tue, Jul 29, 2003 at 10:43:23AM -0400, Bruce Montrose wrote:
> Upon further investigation I discovered that the poll() function was
> behaving quite differently when a connection was closed under Windows. More
> precisely, under Windows poll() would put POLLHUP into revents instead of
> POLLIN as it did under the many different LINUX distributions that I tested
> this on. So to get the onion router to work properly under Windows, I simply
> added a second condition that would allow the calling of conn_read()
> whenever POLLHUP was put into revents by poll() in main.c like this:

Good work, Bruce.

A google on POLLIN POLLHUP yields 
http://www.greenend.org.uk/rjk/2001/06/poll.html
which seems to agree with you.

I'll fix the code.

(And gosh, other than that we work on win32 now? That seems too easy. :)

Thanks,
--Roger



More information about the tor-dev mailing list