2626# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
2727# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
2828# changes)
29- SERVER_VERSION = "1.3.50 "
29+ SERVER_VERSION = "1.3.51 "
3030
3131OLD_VERSION = '2.14.0'
3232
@@ -1221,7 +1221,7 @@ def read_data(connection, cmd, pos_nl, max_data_size, check_done, cmd_name, time
12211221 bytes_received = connection .recv (1024 )
12221222 if bytes_received :
12231223 try :
1224- text_received = bytes_received .decode ('utf-8 ' , 'ignore' )
1224+ text_received = bytes_received .decode ('ascii ' , 'ignore' )
12251225 except UnicodeDecodeError as e :
12261226 print_ts ('Error: Decoding failed ({}): {}' .format (cmd_name , e ))
12271227 data = None
@@ -1243,7 +1243,7 @@ def read_data(connection, cmd, pos_nl, max_data_size, check_done, cmd_name, time
12431243 print_ts ('Timeout occurred ({}).' .format (cmd_name ))
12441244 data = None
12451245
1246- if data and (len (data ) >= ( max_data_size + 1024 ) ):
1246+ if data and (len (data ) >= max_data_size ):
12471247 print_ts ('Maximum allowed data ({} bytes) exceeded ({}).' .format (max_data_size , cmd_name ))
12481248 data = None
12491249
@@ -1321,7 +1321,7 @@ def server(server_address_port: int, packages: list, packageIndex: int, resultPa
13211321 connection .close ()
13221322 continue
13231323 elif cmd .startswith ('write\n ftp://' ) or cmd .startswith ('write\n http://' ):
1324- data = read_data (connection , cmd , pos_nl , max_data_size = 2 * 1024 * 1024 , check_done = True , cmd_name = 'write' )
1324+ data = read_data (connection , cmd , pos_nl , max_data_size = 2.5 * 1024 * 1024 , check_done = True , cmd_name = 'write' )
13251325 if data is None :
13261326 continue
13271327
@@ -1376,7 +1376,7 @@ def server(server_address_port: int, packages: list, packageIndex: int, resultPa
13761376 generate_package_diff_statistics (filename )
13771377 continue
13781378 elif cmd .startswith ('write_info\n ftp://' ) or cmd .startswith ('write_info\n http://' ):
1379- data = read_data (connection , cmd , pos_nl , max_data_size = 1024 * 1024 , check_done = True , cmd_name = 'write_info' )
1379+ data = read_data (connection , cmd , pos_nl , max_data_size = 7 * 1024 * 1024 , check_done = True , cmd_name = 'write_info' )
13801380 if data is None :
13811381 continue
13821382
0 commit comments