Skip to content

Commit 1d0cc99

Browse files
committed
forcing http 1.1 for now
1 parent 2a3b85d commit 1d0cc99

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pubsub/src/main/java/com/fastcomments/pubsub/LiveEventSubscriber.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class LiveEventSubscriber {
2424
private static final Gson gson = new Gson();
2525
private final OkHttpClient client = new OkHttpClient.Builder()
2626
.readTimeout(0, TimeUnit.SECONDS) // no read timeout for ws
27+
.protocols(Collections.singletonList(Protocol.HTTP_1_1)) // having trouble w/ http/2 in emulators
2728
.connectionPool(new ConnectionPool(5, 5, TimeUnit.MINUTES)) // create our own connection pool so it doesn't get shared w/ another okhttpclient config
2829
.build();
2930

0 commit comments

Comments
 (0)