File tree Expand file tree Collapse file tree 7 files changed +19
-18
lines changed
test/kotlin/com/pubnub/api/legacy Expand file tree Collapse file tree 7 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : kotlin
2
- version : 6.0.1
2
+ version : 6.0.2
3
3
schema : 1
4
4
scm : github.com/pubnub/kotlin
5
5
files :
6
- - build/libs/pubnub-kotlin-6.0.1 -all.jar
6
+ - build/libs/pubnub-kotlin-6.0.2 -all.jar
7
7
sdks :
8
8
-
9
9
type : library
@@ -233,6 +233,13 @@ sdks:
233
233
license-url : https://github.com/stleary/JSON-java/blob/20210307/LICENSE
234
234
is-required : Required
235
235
changelog :
236
+ -
237
+ version : v6.0.2
238
+ date : 2021-07-06
239
+ changes :
240
+ -
241
+ type : bug
242
+ text : " Handle socket exception causing crash while canceling the call."
236
243
-
237
244
version : v6.0.1
238
245
date : 2021-05-25
Original file line number Diff line number Diff line change 1
- ## [ v6.0.1 ] ( https://github.com/pubnub/kotlin/releases/tag/v6.0.1 )
2
- May 25 2021
1
+ ## [ v6.0.2 ] ( https://github.com/pubnub/kotlin/releases/tag/v6.0.2 )
2
+ July 6 2021
3
3
4
- [ Full Changelog] ( https://github.com/pubnub/kotlin/compare/v6.0.0 ...v6.0.1 )
4
+ [ Full Changelog] ( https://github.com/pubnub/kotlin/compare/v6.0.1 ...v6.0.2 )
5
5
6
- - There was missing PNAcknowledgmentCategory status callback after unsubscribe operation. Problem was caused by ungaught SSLException. This release provides a fix for the issue .
6
+ - Handle socket exception causing crash while canceling the call .
7
7
8
8
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
23
23
<dependency >
24
24
<groupId >com.pubnub</groupId >
25
25
<artifactId >pubnub-gson</artifactId >
26
- <version >6.0.1 </version >
26
+ <version >6.0.2 </version >
27
27
</dependency >
28
28
```
29
29
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ plugins {
13
13
}
14
14
15
15
group = ' com.pubnub'
16
- version = ' 6.0.1 '
16
+ version = ' 6.0.2 '
17
17
18
18
repositories {
19
19
mavenCentral()
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class PubNub(val configuration: PNConfiguration) {
79
79
80
80
private companion object Constants {
81
81
private const val TIMESTAMP_DIVIDER = 1000
82
- private const val SDK_VERSION = " 6.0.1 "
82
+ private const val SDK_VERSION = " 6.0.2 "
83
83
private const val MAX_SEQUENCE = 65535
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ package com.pubnub.okhttp3
3
3
import okhttp3.Call
4
4
import okhttp3.Connection
5
5
import org.slf4j.LoggerFactory
6
- import java.net.SocketException
7
- import javax.net.ssl.SSLException
8
6
import kotlin.reflect.full.declaredMemberFunctions
9
7
import kotlin.reflect.jvm.isAccessible
10
8
@@ -16,12 +14,8 @@ internal class PNCall(
16
14
override fun cancel () {
17
15
try {
18
16
realCall.getConnection()?.socket()?.shutdownInput()
19
- } catch (se: SocketException ) {
20
- log.warn(" Caught exception when canceling call" , se)
21
- } catch (_: SSLException ) {
22
- // we have to swallow this exception, otherwise cancel will break status delivery
23
- } catch (uoe: UnsupportedOperationException ) {
24
- // silent catch
17
+ } catch (t: Throwable ) {
18
+ log.warn(" Caught throwable when canceling call" , t)
25
19
}
26
20
realCall.cancel()
27
21
}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class PubNubTest : BaseTest() {
67
67
fun getVersionAndTimeStamp () {
68
68
val version = pubnub.version
69
69
val timeStamp = pubnub.timestamp()
70
- assertEquals(" 6.0.1 " , version)
70
+ assertEquals(" 6.0.2 " , version)
71
71
assertTrue(timeStamp > 0 )
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments