> 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.
Your patch would appear to be correct according to POSIX: A file descriptor for a socket that is listening for connections shall indicate that it is ready for reading, once connections are available. A file descriptor for a socket that is connecting asynchronously shall indicate that it is ready for writing, once a connection has been established. Still, it makes me a little nervous. Have you checked that it doesn't break Mac OS X, BSD and SV? -- Juliusz ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Polipo-users mailing list Polipo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/polipo-users