123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856 |
- .class Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;
- .super Lokhttp3/internal/NamedRunnable;
- .source ""
- # interfaces
- .implements Lokhttp3/internal/http2/Http2Reader$Handler;
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/internal/http2/Http2Connection;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x0
- name = "ReaderRunnable"
- .end annotation
- # instance fields
- .field final reader:Lokhttp3/internal/http2/Http2Reader;
- .field final synthetic this$0:Lokhttp3/internal/http2/Http2Connection;
- # direct methods
- .method constructor <init>(Lokhttp3/internal/http2/Http2Connection;Lokhttp3/internal/http2/Http2Reader;)V
- .locals 2
- iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- const/4 v0, 0x1
- new-array v0, v0, [Ljava/lang/Object;
- iget-object p1, p1, Lokhttp3/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
- const/4 v1, 0x0
- aput-object p1, v0, v1
- const-string p1, "OkHttp %s"
- invoke-direct {p0, p1, v0}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
- iput-object p2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader;
- return-void
- .end method
- .method private applyAndAckSettings(Lokhttp3/internal/http2/Settings;)V
- .locals 5
- sget-object v0, Lokhttp3/internal/http2/Http2Connection;->executor:Ljava/util/concurrent/ExecutorService;
- new-instance v1, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$3;
- const/4 v2, 0x1
- new-array v2, v2, [Ljava/lang/Object;
- iget-object v3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v3, v3, Lokhttp3/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
- const/4 v4, 0x0
- aput-object v3, v2, v4
- const-string v3, "OkHttp %s ACK Settings"
- invoke-direct {v1, p0, v3, v2, p1}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$3;-><init>(Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;Lokhttp3/internal/http2/Settings;)V
- invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
- return-void
- .end method
- # virtual methods
- .method public ackSettings()V
- .locals 0
- return-void
- .end method
- .method public alternateService(ILjava/lang/String;Lokio/ByteString;Ljava/lang/String;IJ)V
- .locals 0
- return-void
- .end method
- .method public data(ZILokio/BufferedSource;I)V
- .locals 1
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Http2Connection;->pushedStream(I)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p2, p3, p4, p1}, Lokhttp3/internal/http2/Http2Connection;->pushDataLater(ILokio/BufferedSource;IZ)V
- return-void
- :cond_0
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream;
- move-result-object v0
- if-nez v0, :cond_1
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- sget-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
- invoke-virtual {p1, p2, v0}, Lokhttp3/internal/http2/Http2Connection;->writeSynResetLater(ILokhttp3/internal/http2/ErrorCode;)V
- int-to-long p1, p4
- invoke-interface {p3, p1, p2}, Lokio/BufferedSource;->skip(J)V
- return-void
- :cond_1
- invoke-virtual {v0, p3, p4}, Lokhttp3/internal/http2/Http2Stream;->receiveData(Lokio/BufferedSource;I)V
- if-eqz p1, :cond_2
- invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->receiveFin()V
- :cond_2
- return-void
- .end method
- .method protected execute()V
- .locals 4
- sget-object v0, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
- :try_start_0
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader;
- invoke-virtual {v1, p0}, Lokhttp3/internal/http2/Http2Reader;->readConnectionPreface(Lokhttp3/internal/http2/Http2Reader$Handler;)V
- :goto_0
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader;
- const/4 v2, 0x0
- invoke-virtual {v1, v2, p0}, Lokhttp3/internal/http2/Http2Reader;->nextFrame(ZLokhttp3/internal/http2/Http2Reader$Handler;)Z
- move-result v1
- if-eqz v1, :cond_0
- goto :goto_0
- :cond_0
- sget-object v1, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
- :try_end_0
- .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- :try_start_1
- sget-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
- :try_end_1
- .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_1
- :try_start_2
- iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- :try_end_2
- .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
- goto :goto_1
- :catchall_0
- move-exception v2
- move-object v1, v0
- goto :goto_2
- :catch_0
- move-object v1, v0
- :catch_1
- :try_start_3
- sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
- sget-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
- :try_end_3
- .catchall {:try_start_3 .. :try_end_3} :catchall_1
- :try_start_4
- iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- :goto_1
- invoke-virtual {v2, v1, v0}, Lokhttp3/internal/http2/Http2Connection;->close(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;)V
- :try_end_4
- .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2
- :catch_2
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader;
- invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
- return-void
- :catchall_1
- move-exception v2
- :goto_2
- :try_start_5
- iget-object v3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v3, v1, v0}, Lokhttp3/internal/http2/Http2Connection;->close(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;)V
- :try_end_5
- .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
- :catch_3
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader;
- invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
- goto :goto_4
- :goto_3
- throw v2
- :goto_4
- goto :goto_3
- .end method
- .method public goAway(ILokhttp3/internal/http2/ErrorCode;Lokio/ByteString;)V
- .locals 3
- invoke-virtual {p3}, Lokio/ByteString;->size()I
- iget-object p2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- monitor-enter p2
- :try_start_0
- iget-object p3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object p3, p3, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-interface {p3}, Ljava/util/Map;->values()Ljava/util/Collection;
- move-result-object p3
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-interface {v0}, Ljava/util/Map;->size()I
- move-result v0
- new-array v0, v0, [Lokhttp3/internal/http2/Http2Stream;
- invoke-interface {p3, v0}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
- move-result-object p3
- check-cast p3, [Lokhttp3/internal/http2/Http2Stream;
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- const/4 v1, 0x1
- iput-boolean v1, v0, Lokhttp3/internal/http2/Http2Connection;->shutdown:Z
- monitor-exit p2
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- array-length p2, p3
- const/4 v0, 0x0
- :goto_0
- if-ge v0, p2, :cond_1
- aget-object v1, p3, v0
- invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->getId()I
- move-result v2
- if-le v2, p1, :cond_0
- invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z
- move-result v2
- if-eqz v2, :cond_0
- sget-object v2, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
- invoke-virtual {v1, v2}, Lokhttp3/internal/http2/Http2Stream;->receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V
- iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->getId()I
- move-result v1
- invoke-virtual {v2, v1}, Lokhttp3/internal/http2/Http2Connection;->removeStream(I)Lokhttp3/internal/http2/Http2Stream;
- :cond_0
- add-int/lit8 v0, v0, 0x1
- goto :goto_0
- :cond_1
- return-void
- :catchall_0
- move-exception p1
- :try_start_1
- monitor-exit p2
- :try_end_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_0
- goto :goto_2
- :goto_1
- throw p1
- :goto_2
- goto :goto_1
- .end method
- .method public headers(ZIILjava/util/List;)V
- .locals 9
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(ZII",
- "Ljava/util/List<",
- "Lokhttp3/internal/http2/Header;",
- ">;)V"
- }
- .end annotation
- iget-object p3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {p3, p2}, Lokhttp3/internal/http2/Http2Connection;->pushedStream(I)Z
- move-result p3
- if-eqz p3, :cond_0
- iget-object p3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {p3, p2, p4, p1}, Lokhttp3/internal/http2/Http2Connection;->pushHeadersLater(ILjava/util/List;Z)V
- return-void
- :cond_0
- iget-object p3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- monitor-enter p3
- :try_start_0
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream;
- move-result-object v0
- if-nez v0, :cond_4
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Connection;->shutdown:Z
- if-eqz v0, :cond_1
- monitor-exit p3
- return-void
- :cond_1
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget v0, v0, Lokhttp3/internal/http2/Http2Connection;->lastGoodStreamId:I
- if-gt p2, v0, :cond_2
- monitor-exit p3
- return-void
- :cond_2
- rem-int/lit8 v0, p2, 0x2
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget v1, v1, Lokhttp3/internal/http2/Http2Connection;->nextStreamId:I
- const/4 v2, 0x2
- rem-int/2addr v1, v2
- if-ne v0, v1, :cond_3
- monitor-exit p3
- return-void
- :cond_3
- new-instance v0, Lokhttp3/internal/http2/Http2Stream;
- iget-object v5, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- const/4 v6, 0x0
- move-object v3, v0
- move v4, p2
- move v7, p1
- move-object v8, p4
- invoke-direct/range {v3 .. v8}, Lokhttp3/internal/http2/Http2Stream;-><init>(ILokhttp3/internal/http2/Http2Connection;ZZLjava/util/List;)V
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iput p2, p1, Lokhttp3/internal/http2/Http2Connection;->lastGoodStreamId:I
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object p1, p1, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
- move-result-object p4
- invoke-interface {p1, p4, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
- sget-object p1, Lokhttp3/internal/http2/Http2Connection;->executor:Ljava/util/concurrent/ExecutorService;
- new-instance p4, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$1;
- const-string v1, "OkHttp %s stream %d"
- new-array v2, v2, [Ljava/lang/Object;
- const/4 v3, 0x0
- iget-object v4, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v4, v4, Lokhttp3/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
- aput-object v4, v2, v3
- const/4 v3, 0x1
- invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
- move-result-object p2
- aput-object p2, v2, v3
- invoke-direct {p4, p0, v1, v2, v0}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$1;-><init>(Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;Lokhttp3/internal/http2/Http2Stream;)V
- invoke-interface {p1, p4}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
- monitor-exit p3
- return-void
- :cond_4
- monitor-exit p3
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- invoke-virtual {v0, p4}, Lokhttp3/internal/http2/Http2Stream;->receiveHeaders(Ljava/util/List;)V
- if-eqz p1, :cond_5
- invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->receiveFin()V
- :cond_5
- return-void
- :catchall_0
- move-exception p1
- :try_start_1
- monitor-exit p3
- :try_end_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_0
- throw p1
- .end method
- .method public ping(ZII)V
- .locals 2
- if-eqz p1, :cond_0
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Connection;->removePing(I)Lokhttp3/internal/http2/Ping;
- move-result-object p1
- if-eqz p1, :cond_1
- invoke-virtual {p1}, Lokhttp3/internal/http2/Ping;->receive()V
- goto :goto_0
- :cond_0
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- const/4 v0, 0x1
- const/4 v1, 0x0
- invoke-virtual {p1, v0, p2, p3, v1}, Lokhttp3/internal/http2/Http2Connection;->writePingLater(ZIILokhttp3/internal/http2/Ping;)V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public priority(IIIZ)V
- .locals 0
- return-void
- .end method
- .method public pushPromise(IILjava/util/List;)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(II",
- "Ljava/util/List<",
- "Lokhttp3/internal/http2/Header;",
- ">;)V"
- }
- .end annotation
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {p1, p2, p3}, Lokhttp3/internal/http2/Http2Connection;->pushRequestLater(ILjava/util/List;)V
- return-void
- .end method
- .method public rstStream(ILokhttp3/internal/http2/ErrorCode;)V
- .locals 1
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Connection;->pushedStream(I)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p1, p2}, Lokhttp3/internal/http2/Http2Connection;->pushResetLater(ILokhttp3/internal/http2/ErrorCode;)V
- return-void
- :cond_0
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Connection;->removeStream(I)Lokhttp3/internal/http2/Http2Stream;
- move-result-object p1
- if-eqz p1, :cond_1
- invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Stream;->receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V
- :cond_1
- return-void
- .end method
- .method public settings(ZLokhttp3/internal/http2/Settings;)V
- .locals 10
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- monitor-enter v0
- :try_start_0
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->peerSettings:Lokhttp3/internal/http2/Settings;
- invoke-virtual {v1}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I
- move-result v1
- if-eqz p1, :cond_0
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object p1, p1, Lokhttp3/internal/http2/Http2Connection;->peerSettings:Lokhttp3/internal/http2/Settings;
- invoke-virtual {p1}, Lokhttp3/internal/http2/Settings;->clear()V
- :cond_0
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object p1, p1, Lokhttp3/internal/http2/Http2Connection;->peerSettings:Lokhttp3/internal/http2/Settings;
- invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Settings;->merge(Lokhttp3/internal/http2/Settings;)V
- invoke-direct {p0, p2}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->applyAndAckSettings(Lokhttp3/internal/http2/Settings;)V
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object p1, p1, Lokhttp3/internal/http2/Http2Connection;->peerSettings:Lokhttp3/internal/http2/Settings;
- invoke-virtual {p1}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I
- move-result p1
- const/4 p2, -0x1
- const-wide/16 v2, 0x0
- const/4 v4, 0x1
- const/4 v5, 0x0
- if-eq p1, p2, :cond_2
- if-eq p1, v1, :cond_2
- sub-int/2addr p1, v1
- int-to-long p1, p1
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-boolean v1, v1, Lokhttp3/internal/http2/Http2Connection;->receivedInitialPeerSettings:Z
- if-nez v1, :cond_1
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {v1, p1, p2}, Lokhttp3/internal/http2/Http2Connection;->addBytesToWriteWindow(J)V
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iput-boolean v4, v1, Lokhttp3/internal/http2/Http2Connection;->receivedInitialPeerSettings:Z
- :cond_1
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
- move-result v1
- if-nez v1, :cond_3
- iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
- move-result-object v1
- iget-object v5, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v5, v5, Lokhttp3/internal/http2/Http2Connection;->streams:Ljava/util/Map;
- invoke-interface {v5}, Ljava/util/Map;->size()I
- move-result v5
- new-array v5, v5, [Lokhttp3/internal/http2/Http2Stream;
- invoke-interface {v1, v5}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
- move-result-object v1
- move-object v5, v1
- check-cast v5, [Lokhttp3/internal/http2/Http2Stream;
- goto :goto_0
- :cond_2
- move-wide p1, v2
- :cond_3
- :goto_0
- sget-object v1, Lokhttp3/internal/http2/Http2Connection;->executor:Ljava/util/concurrent/ExecutorService;
- new-instance v6, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$2;
- const-string v7, "OkHttp %s settings"
- new-array v4, v4, [Ljava/lang/Object;
- iget-object v8, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-object v8, v8, Lokhttp3/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
- const/4 v9, 0x0
- aput-object v8, v4, v9
- invoke-direct {v6, p0, v7, v4}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$2;-><init>(Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;)V
- invoke-interface {v1, v6}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
- monitor-exit v0
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_1
- if-eqz v5, :cond_4
- cmp-long v0, p1, v2
- if-eqz v0, :cond_4
- array-length v0, v5
- :goto_1
- if-ge v9, v0, :cond_4
- aget-object v1, v5, v9
- monitor-enter v1
- :try_start_1
- invoke-virtual {v1, p1, p2}, Lokhttp3/internal/http2/Http2Stream;->addBytesToWriteWindow(J)V
- monitor-exit v1
- add-int/lit8 v9, v9, 0x1
- goto :goto_1
- :catchall_0
- move-exception p1
- monitor-exit v1
- :try_end_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_0
- throw p1
- :cond_4
- return-void
- :catchall_1
- move-exception p1
- :try_start_2
- monitor-exit v0
- :try_end_2
- .catchall {:try_start_2 .. :try_end_2} :catchall_1
- goto :goto_3
- :goto_2
- throw p1
- :goto_3
- goto :goto_2
- .end method
- .method public windowUpdate(IJ)V
- .locals 3
- iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- if-nez p1, :cond_0
- monitor-enter v0
- :try_start_0
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- iget-wide v1, p1, Lokhttp3/internal/http2/Http2Connection;->bytesLeftInWriteWindow:J
- add-long/2addr v1, p2
- iput-wide v1, p1, Lokhttp3/internal/http2/Http2Connection;->bytesLeftInWriteWindow:J
- iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection;
- invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
- monitor-exit v0
- goto :goto_0
- :catchall_0
- move-exception p1
- monitor-exit v0
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- throw p1
- :cond_0
- invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream;
- move-result-object p1
- if-eqz p1, :cond_1
- monitor-enter p1
- :try_start_1
- invoke-virtual {p1, p2, p3}, Lokhttp3/internal/http2/Http2Stream;->addBytesToWriteWindow(J)V
- monitor-exit p1
- goto :goto_0
- :catchall_1
- move-exception p2
- monitor-exit p1
- :try_end_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_1
- throw p2
- :cond_1
- :goto_0
- return-void
- .end method
|