Net::Stomp and the curious timing behaviour
simon at thegestalt.org
Mon Jan 8 15:27:53 GMT 2007
On Mon, Jan 08, 2007 at 02:36:40PM +0000, Dirk Koopman said:
> Select timeouts and looping probably. Java will, almost certainly, be
> using threads with blocking reads. The default non-zero minimum time you
> can set in the timeval parameter of a select() call (in linux) is 10mS.
> In theory, if a packet comes along in the meantime the select should
> drop before the 10mS is up. Other work (in C not just in perl), is
> starting to make me question whether it actually waits for 10mS
This is largely what I suspected, but far more eloquently written.
Hmm. Now to see if I can come up with a way round it. I suspect
Danga::Socket may come in handy. Now if only I worked with the author.
More information about the london.pm