2010/10/21 Francesc Oller <francesc.ol...@upc.edu>: I cannot say that I throughly know this. Most part of the below answers is just from reading the sources:
> > 1.- > > call Poll.poll fails with: > > Poll.poll: Unknown error 4294847295 > >From Poll.java of Tomcat trunk: * @param descriptors Array of signaled descriptors (output parameter) * The descriptor array must be two times the size of pollset. * and are populated as follows: You create a pollset with size of 10, but pass in an array of 2 ? > Should block at it, right? > > 2.- > > It is unclear to me which value to put in 4th parameter > (time to live) of: > > long set = Poll.create(10, pool, 0, 10); > AprEndpoint.java: return Poll.create(size, pool, 0, timeout * 1000); See also [1] The ttl value is apr_interval_time_t, which is measured in microseconds. The value for "timeout" may come from org.apache.tomcat.util.net.SocketProperties.soTimeout, which defaults to 20000 (20 seconds). Thus 20000 * 1000; > 3.- > > Socket.recv(ns, recchars, 0, -1) doesn't work. I'd to put full byte[] > length (80) > >From the source code (it is network.c) it looks like -1 wouldn't be a valid value for nbytes argument, so the javadoc in Socket.java is wrong here. > Couldn't find any sample code that could enlighten these questions. > Tomcat sources? > Regards, francesc > [1] http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/poll.c?view=markup Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org