Page MenuHomeFreeBSD

D18392.diff
No OneTemporary

D18392.diff

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

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)

Event Timeline