[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: I got the onion router to work under windows!
- To: or-dev@freehaven.net
- Subject: Re: I got the onion router to work under windows!
- From: Roger Dingledine <arma@mit.edu>
- Date: Wed, 6 Aug 2003 14:38:01 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: or-dev-outgoing@seul.org
- Delivered-to: or-dev@seul.org
- Delivery-date: Wed, 06 Aug 2003 14:38:13 -0400
- In-reply-to: <001e01c355df$c3688220$5902000a@kiwi>; from montrose@itd.nrl.navy.mil on Tue, Jul 29, 2003 at 10:43:23AM -0400
- References: <001b01c34ba4$b651a6b0$5902000a@kiwi> <001e01c355df$c3688220$5902000a@kiwi>
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-dev@freehaven.net
- User-agent: Mutt/1.2.5.1i
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