Hello, I found what I'd call an oversight in one of the startup routines. It
registers the listening filedescriptor to get both POLLOUT|POLLIN events,
the former does not really make sense here. This seems to be ignored by the
glibc/linux but when I try to run it inside cwrap's socket_wrapper I get
infinite loop where polipo tries to accept() on the socket and gets told
there isn't anything connecting.
Anyway, here's a patch against git head:
diff --git a/io.c b/io.c
index fb58d41..bac7e3a 100644
--- a/io.c
+++ b/io.c
@@ -647,7 +647,7 @@ schedule_accept(int fd,
request.fd = fd;
request.handler = handler;
request.data = data;
- event = registerFdEvent(fd, POLLOUT|POLLIN,
+ event = registerFdEvent(fd, POLLIN,
do_scheduled_accept, sizeof(request), &request);
if(!event) {
done = (*handler)(-ENOMEM, NULL, NULL);
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users