Subject: pkg/12092: cyrus IMAPd sometimes hangs indefinitely on login
To: None <>
From: Jesse Off <>
List: netbsd-bugs
Date: 01/31/2001 12:45:20
>Number:         12092
>Category:       pkg
>Synopsis:       cyrus IMAPd sometimes hangs indefinitely on login
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 31 12:48:00 PST 2001
>Originator:     Jesse Off
>Release:        1.5
	NewMonics, Inc.
System: NetBSD 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (PSICORP) #4: Fri Jan 19 23:10:55 GMT 2001 joff@psicorp.tucson.home:/usr/src/sys/arch/i386/compile/PSICORP i386

	Sometimes, IMAP logins will hang for an undefined amount of time
	without doing anything.  Examination shows that the imap process is
	blocked reading /dev/random.	
	Easiest way is to run:
		installsieve -u USER -w PASS -l -p PORT localhost
	I got delays of upwards to 1-2 minutes from this.
	The problem is that the cyrus-sasl pkg uses up the entire entropy pool
	in /dev/random and then has to block waiting for more entropy.  
	Patching the DEV_RANDOM #define to /dev/urandom fixes it.