// The listener must be active for this to work. internal unsafe void SetLengthLimit(long length) { CheckDisposed(); var result = HttpApi.HttpSetRequestQueueProperty(Handle, HttpApiTypes.HTTP_SERVER_PROPERTY.HttpServerQueueLengthProperty, new IntPtr((void *)&length), (uint)Marshal.SizeOf <long>(), 0, IntPtr.Zero); if (result != 0) { throw new HttpSysException((int)result); } }
// The listener must be active for this to work. internal unsafe void SetRejectionVerbosity(Http503VerbosityLevel verbosity) { CheckDisposed(); var result = HttpApi.HttpSetRequestQueueProperty(Handle, HttpApiTypes.HTTP_SERVER_PROPERTY.HttpServer503VerbosityProperty, new IntPtr((void *)&verbosity), (uint)Marshal.SizeOf <long>(), 0, IntPtr.Zero); if (result != 0) { throw new HttpSysException((int)result); } }