Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136988318
D18392.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
D18392.diff
View Options
Index: head/usr.sbin/nscd/nscd.c
===================================================================
--- head/usr.sbin/nscd/nscd.c
+++ head/usr.sbin/nscd/nscd.c
@@ -405,6 +405,12 @@
* process_socket_event).
*/
if (qstate->kevent_watermark > MAX_SOCKET_IO_SIZE) {
+#if 0
+ /*
+ * XXX: Uncommenting this code makes nscd(8) fail for
+ * entries larger than a few kB, causing few second
+ * worth of delay for each call to retrieve them.
+ */
if (qstate->io_buffer != NULL)
free(qstate->io_buffer);
@@ -421,6 +427,7 @@
if (qstate->kevent_filter == EVFILT_READ)
qstate->use_alternate_io = 1;
+#endif
qstate->io_buffer_watermark = MAX_SOCKET_IO_SIZE;
EV_SET(&eventlist[1], event_data->ident,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 10:28 PM (12 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25816722
Default Alt Text
D18392.diff (753 B)
Attached To
Mode
D18392: Workaround for nscd(8) failure with large entries
Attached
Detach File
Event Timeline
Log In to Comment