Merge branch 'v0.22.x'
This commit is contained in:
		| @@ -23,6 +23,7 @@ | ||||
| #include "Message.hxx" | ||||
| #include "command/CommandResult.hxx" | ||||
| #include "command/CommandListBuilder.hxx" | ||||
| #include "input/LastInputStream.hxx" | ||||
| #include "tag/Mask.hxx" | ||||
| #include "event/FullyBufferedSocket.hxx" | ||||
| #include "event/CoarseTimerEvent.hxx" | ||||
| @@ -90,6 +91,13 @@ public: | ||||
| 	 */ | ||||
| 	size_t binary_limit = 8192; | ||||
|  | ||||
| 	/** | ||||
| 	 * This caches the last "albumart" InputStream instance, to | ||||
| 	 * avoid repeating the search for each chunk requested by this | ||||
| 	 * client. | ||||
| 	 */ | ||||
| 	LastInputStream last_album_art; | ||||
|  | ||||
| private: | ||||
| 	static constexpr size_t MAX_SUBSCRIPTIONS = 16; | ||||
|  | ||||
|   | ||||
| @@ -44,7 +44,8 @@ Client::Client(EventLoop &_loop, Partition &_partition, | ||||
| 	 partition(&_partition), | ||||
| 	 permission(_permission), | ||||
| 	 uid(_uid), | ||||
| 	 num(_num) | ||||
| 	 num(_num), | ||||
| 	 last_album_art(_loop) | ||||
| { | ||||
| 	timeout_event.Schedule(client_timeout); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann