ukernel: add morepackets check in listener

Make the listener loop actually check for more packets needed,
like kernel, pthreads and lwp. Only checking for new packets every
20 seconds isn't sufficient on today's networks!

Change-Id: I72ff1229530bb36470891aae2e5ec65e59463084
Reviewed-on: http://gerrit.openafs.org/5605
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry-picked from eead07418f13cd87a90770f03ea5118c546d8f1a)
Reviewed-on: http://gerrit.openafs.org/5894
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Simon Wilkinson 2011-10-12 13:04:28 -04:00 committed by Jeffrey Altman
parent c6a43197f9
commit ba344bc2b6

View File

@ -73,6 +73,9 @@ rxi_ListenerProc(osi_socket usockp, int *tnop, struct rx_call **newcallp)
* for processing.
*/
while (1) {
/* See if a check for additional packets was issued */
rx_CheckPackets();
tp = rxi_AllocPacket(RX_PACKET_CLASS_RECEIVE);
usr_assert(tp != NULL);
rc = rxi_ReadPacket(usockp, tp, &host, &port);