Skip to content

Commit 473a89a

Browse files
PubNub SDK v6.0.2 release.
1 parent 8f423fb commit 473a89a

File tree

7 files changed

+19
-18
lines changed

7 files changed

+19
-18
lines changed

.pubnub.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: kotlin
2-
version: 6.0.1
2+
version: 6.0.2
33
schema: 1
44
scm: github.com/pubnub/kotlin
55
files:
6-
- build/libs/pubnub-kotlin-6.0.1-all.jar
6+
- build/libs/pubnub-kotlin-6.0.2-all.jar
77
sdks:
88
-
99
type: library
@@ -233,6 +233,13 @@ sdks:
233233
license-url: https://github.com/stleary/JSON-java/blob/20210307/LICENSE
234234
is-required: Required
235235
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."
236243
-
237244
version: v6.0.1
238245
date: 2021-05-25

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
33

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)
55

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.
77

88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
2323
<dependency>
2424
<groupId>com.pubnub</groupId>
2525
<artifactId>pubnub-gson</artifactId>
26-
<version>6.0.1</version>
26+
<version>6.0.2</version>
2727
</dependency>
2828
```
2929

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
}
1414

1515
group = 'com.pubnub'
16-
version = '6.0.1'
16+
version = '6.0.2'
1717

1818
repositories {
1919
mavenCentral()

src/main/kotlin/com/pubnub/api/PubNub.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class PubNub(val configuration: PNConfiguration) {
7979

8080
private companion object Constants {
8181
private const val TIMESTAMP_DIVIDER = 1000
82-
private const val SDK_VERSION = "6.0.1"
82+
private const val SDK_VERSION = "6.0.2"
8383
private const val MAX_SEQUENCE = 65535
8484
}
8585

src/main/kotlin/com/pubnub/okhttp3/PNCall.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ package com.pubnub.okhttp3
33
import okhttp3.Call
44
import okhttp3.Connection
55
import org.slf4j.LoggerFactory
6-
import java.net.SocketException
7-
import javax.net.ssl.SSLException
86
import kotlin.reflect.full.declaredMemberFunctions
97
import kotlin.reflect.jvm.isAccessible
108

@@ -16,12 +14,8 @@ internal class PNCall(
1614
override fun cancel() {
1715
try {
1816
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)
2519
}
2620
realCall.cancel()
2721
}

src/test/kotlin/com/pubnub/api/legacy/PubNubTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class PubNubTest : BaseTest() {
6767
fun getVersionAndTimeStamp() {
6868
val version = pubnub.version
6969
val timeStamp = pubnub.timestamp()
70-
assertEquals("6.0.1", version)
70+
assertEquals("6.0.2", version)
7171
assertTrue(timeStamp > 0)
7272
}
7373
}

0 commit comments

Comments
 (0)