Skip to content

Commit d8e6b98

Browse files
Use generated ID for the background session. (#1528)
Session ID should be unique across the application. This is not the case when there are several network layers instances. Not the best but fast and easy way is to generate the ID using existing mechanism. Relates-To: OCMAM-97 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent a79cb43 commit d8e6b98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

olp-cpp-sdk-core/src/http/ios/OLPHttpClient.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2023 HERE Europe B.V.
2+
* Copyright (C) 2019-2024 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,7 +93,7 @@ - (instancetype)init {
9393
_sharedUrlBackgroundSession =
9494
[self urlSessionWithProxy:nil
9595
andHeaders:nil
96-
andBackgroundId:@"olp-sdk-cpp-core"];
96+
andBackgroundId:[self generateNextSessionId]];
9797

9898
_tasks = [[NSMutableDictionary alloc] init];
9999
_idTaskMap = [[NSMutableDictionary alloc] init];

0 commit comments

Comments
 (0)