[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: I got the onion router to work under windows!



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