[banshee] LastFM: Decrease max scrobble request size (bgo#720359)



commit 5eb176c99fd003d31e19bb2662ff067dd0671ee6
Author: Phil Trimble <PhilTrimble gmail com>
Date:   Sun Jan 12 00:58:29 2014 -0600

    LastFM: Decrease max scrobble request size (bgo#720359)
    
    The current max of 7000 bytes still sometimes results in LastFM
    'URI too large' errors. Based on testing with an extremely
    large audioscrobbler-queue.xml file 6900 bytes is a better target.
    
    Signed-off-by: Andrés G. Aragoneses <knocte gmail com>

 src/Libraries/Lastfm/Lastfm/LastfmRequest.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Lastfm/Lastfm/LastfmRequest.cs b/src/Libraries/Lastfm/Lastfm/LastfmRequest.cs
index 5f04464..be94191 100644
--- a/src/Libraries/Lastfm/Lastfm/LastfmRequest.cs
+++ b/src/Libraries/Lastfm/Lastfm/LastfmRequest.cs
@@ -133,7 +133,7 @@ namespace Lastfm
         private StringBuilder incremental_data;
 
         // This is close to the max based on testing.
-        private const int MAX_POST_LENGTH = 7000;
+        private const int MAX_POST_LENGTH = 6900;
 
         public void AddParameter (string param_name, string param_value)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]