.class public final Lokhttp3/internal/http2/Http2Stream; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/internal/http2/Http2Stream$StreamTimeout;, Lokhttp3/internal/http2/Http2Stream$FramingSink;, Lokhttp3/internal/http2/Http2Stream$FramingSource; } .end annotation # instance fields .field public bytesLeftInWriteWindow:J .field public final connection:Lokhttp3/internal/http2/Http2Connection; .field public errorCode:Lokhttp3/internal/http2/ErrorCode; .field public errorException:Ljava/io/IOException; .field public hasResponseHeaders:Z .field public final headersQueue:Ljava/util/Deque; .field public final id:I .field public final readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; .field public final sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; .field public final source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .field public unacknowledgedBytesRead:J .field public final writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; # direct methods .method static constructor ()V .locals 0 return-void .end method .method public constructor (ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V .locals 3 .line 83 invoke-direct {p0}, Ljava/lang/Object;->()V const-wide/16 v0, 0x0 iput-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->unacknowledgedBytesRead:J .line 62 new-instance v0, Ljava/util/ArrayDeque; invoke-direct {v0}, Ljava/util/ArrayDeque;->()V iput-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/Deque; .line 69 new-instance v1, Lokhttp3/internal/http2/Http2Stream$StreamTimeout; invoke-direct {v1, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->(Lokhttp3/internal/http2/Http2Stream;)V iput-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; .line 70 new-instance v1, Lokhttp3/internal/http2/Http2Stream$StreamTimeout; invoke-direct {v1, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->(Lokhttp3/internal/http2/Http2Stream;)V iput-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; if-eqz p2, :cond_5 iput p1, p0, Lokhttp3/internal/http2/Http2Stream;->id:I iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; .line 88 iget-object p1, p2, Lokhttp3/internal/http2/Http2Connection;->peerSettings:Lokhttp3/internal/http2/Settings; .line 89 invoke-virtual {p1}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I move-result p1 int-to-long v1, p1 iput-wide v1, p0, Lokhttp3/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J .line 90 new-instance p1, Lokhttp3/internal/http2/Http2Stream$FramingSource; iget-object p2, p2, Lokhttp3/internal/http2/Http2Connection;->okHttpSettings:Lokhttp3/internal/http2/Settings; invoke-virtual {p2}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I move-result p2 int-to-long v1, p2 invoke-direct {p1, p0, v1, v2}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->(Lokhttp3/internal/http2/Http2Stream;J)V iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 91 new-instance p2, Lokhttp3/internal/http2/Http2Stream$FramingSink; invoke-direct {p2, p0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->(Lokhttp3/internal/http2/Http2Stream;)V iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; iput-boolean p4, p1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z iput-boolean p3, p2, Lokhttp3/internal/http2/Http2Stream$FramingSink;->finished:Z if-eqz p5, :cond_0 .line 95 invoke-interface {v0, p5}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z .line 98 :cond_0 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z move-result p1 if-eqz p1, :cond_2 if-nez p5, :cond_1 goto :goto_0 .line 99 :cond_1 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "locally-initiated streams shouldn\'t have headers yet" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .line 100 :cond_2 :goto_0 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z move-result p1 if-nez p1, :cond_4 if-eqz p5, :cond_3 goto :goto_1 .line 101 :cond_3 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "remotely-initiated streams should have headers" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 :cond_4 :goto_1 return-void .line 84 :cond_5 new-instance p1, Ljava/lang/NullPointerException; const-string p2, "connection == null" invoke-direct {p1, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 .end method # virtual methods .method public addBytesToWriteWindow(J)V .locals 2 iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J add-long/2addr v0, p1 iput-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J const-wide/16 v0, 0x0 cmp-long p1, p1, v0 if-lez p1, :cond_0 .line 641 invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V :cond_0 return-void .end method .method public cancelStreamIfNecessary()V .locals 2 .line 516 monitor-enter p0 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 517 iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z if-nez v1, :cond_1 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->finished:Z if-nez v1, :cond_0 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->closed:Z if-eqz v0, :cond_1 goto :goto_0 :catchall_0 move-exception v0 goto :goto_3 :cond_0 :goto_0 const/4 v0, 0x1 goto :goto_1 :cond_1 const/4 v0, 0x0 .line 518 :goto_1 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isOpen()Z move-result v1 .line 519 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v0, :cond_2 .line 525 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode; const/4 v1, 0x0 invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/Http2Stream;->close(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V goto :goto_2 :cond_2 if-nez v1, :cond_3 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; iget v1, p0, Lokhttp3/internal/http2/Http2Stream;->id:I .line 527 invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Connection;->removeStream(I)Lokhttp3/internal/http2/Http2Stream; :cond_3 :goto_2 return-void .line 519 :goto_3 :try_start_1 monitor-exit p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 throw v0 .end method .method public checkOutNotClosed()V .locals 2 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; .line 645 iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->closed:Z if-nez v1, :cond_3 .line 647 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->finished:Z if-nez v0, :cond_2 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException; if-eqz v0, :cond_0 goto :goto_0 .line 650 :cond_0 new-instance v0, Lokhttp3/internal/http2/StreamResetException; iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;->(Lokhttp3/internal/http2/ErrorCode;)V :goto_0 throw v0 :cond_1 return-void .line 648 :cond_2 new-instance v0, Ljava/io/IOException; const-string v1, "stream finished" invoke-direct {v0, v1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .line 646 :cond_3 new-instance v0, Ljava/io/IOException; const-string v1, "stream closed" invoke-direct {v0, v1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 .end method .method public close(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V .locals 1 .line 262 invoke-virtual {p0, p1, p2}, Lokhttp3/internal/http2/Http2Stream;->closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z move-result p2 if-nez p2, :cond_0 return-void :cond_0 iget-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I .line 265 invoke-virtual {p2, v0, p1}, Lokhttp3/internal/http2/Http2Connection;->writeSynReset(ILokhttp3/internal/http2/ErrorCode;)V return-void .end method .method public final closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z .locals 2 .line 282 monitor-enter p0 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; const/4 v1, 0x0 if-eqz v0, :cond_0 .line 284 monitor-exit p0 return v1 :catchall_0 move-exception p1 goto :goto_0 :cond_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 286 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z if-eqz v0, :cond_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->finished:Z if-eqz v0, :cond_1 .line 287 monitor-exit p0 return v1 :cond_1 iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException; .line 291 invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V .line 292 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; iget p2, p0, Lokhttp3/internal/http2/Http2Stream;->id:I .line 293 invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Connection;->removeStream(I)Lokhttp3/internal/http2/Http2Stream; const/4 p1, 0x1 return p1 .line 292 :goto_0 :try_start_1 monitor-exit p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 throw p1 .end method .method public closeLater(Lokhttp3/internal/http2/ErrorCode;)V .locals 2 const/4 v0, 0x0 .line 273 invoke-virtual {p0, p1, v0}, Lokhttp3/internal/http2/Http2Stream;->closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z move-result v0 if-nez v0, :cond_0 return-void :cond_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; iget v1, p0, Lokhttp3/internal/http2/Http2Stream;->id:I .line 276 invoke-virtual {v0, v1, p1}, Lokhttp3/internal/http2/Http2Connection;->writeSynResetLater(ILokhttp3/internal/http2/ErrorCode;)V return-void .end method .method public getId()I .locals 1 iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I return v0 .end method .method public getSink()Lokio/Sink; .locals 2 .line 248 monitor-enter p0 :try_start_0 iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z if-nez v0, :cond_1 .line 249 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z move-result v0 if-eqz v0, :cond_0 goto :goto_0 .line 250 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "reply before requesting the sink" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 :catchall_0 move-exception v0 goto :goto_1 .line 252 :cond_1 :goto_0 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; return-object v0 :goto_1 :try_start_1 monitor-exit p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 throw v0 .end method .method public getSource()Lokio/Source; .locals 1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; return-object v0 .end method .method public isLocallyInitiated()Z .locals 4 iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I const/4 v1, 0x1 and-int/2addr v0, v1 const/4 v2, 0x0 if-ne v0, v1, :cond_0 move v0, v1 goto :goto_0 :cond_0 move v0, v2 :goto_0 iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; .line 135 iget-boolean v3, v3, Lokhttp3/internal/http2/Http2Connection;->client:Z if-ne v3, v0, :cond_1 goto :goto_1 :cond_1 move v1, v2 :goto_1 return v1 .end method .method public declared-synchronized isOpen()Z .locals 3 monitor-enter p0 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 const/4 v1, 0x0 if-eqz v0, :cond_0 .line 122 monitor-exit p0 return v1 :cond_0 :try_start_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 124 iget-boolean v2, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z if-nez v2, :cond_1 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z if-eqz v0, :cond_3 goto :goto_0 :catchall_0 move-exception v0 goto :goto_1 :cond_1 :goto_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink; iget-boolean v2, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->finished:Z if-nez v2, :cond_2 iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->closed:Z if-eqz v0, :cond_3 :cond_2 iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 if-eqz v0, :cond_3 .line 127 monitor-exit p0 return v1 .line 129 :cond_3 monitor-exit p0 const/4 v0, 0x1 return v0 :goto_1 monitor-exit p0 throw v0 .end method .method public readTimeout()Lokio/Timeout; .locals 1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; return-object v0 .end method .method public receiveData(Lokio/BufferedSource;I)V .locals 3 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; int-to-long v1, p2 .line 299 invoke-virtual {v0, p1, v1, v2}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receive(Lokio/BufferedSource;J)V return-void .end method .method public receiveHeaders(Lokhttp3/Headers;Z)V .locals 2 .line 309 monitor-enter p0 :try_start_0 iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z const/4 v1, 0x1 if-eqz v0, :cond_1 if-nez p2, :cond_0 goto :goto_0 :cond_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 314 invoke-static {v0, p1}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->access$202(Lokhttp3/internal/http2/Http2Stream$FramingSource;Lokhttp3/Headers;)Lokhttp3/Headers; goto :goto_1 :catchall_0 move-exception p1 goto :goto_2 :cond_1 :goto_0 iput-boolean v1, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/Deque; .line 312 invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z :goto_1 if-eqz p2, :cond_2 iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource; .line 317 iput-boolean v1, p1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z .line 319 :cond_2 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isOpen()Z move-result p1 .line 320 invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V .line 321 monitor-exit p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-nez p1, :cond_3 iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection; iget p2, p0, Lokhttp3/internal/http2/Http2Stream;->id:I .line 323 invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Connection;->removeStream(I)Lokhttp3/internal/http2/Http2Stream; :cond_3 return-void .line 321 :goto_2 :try_start_1 monitor-exit p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 throw p1 .end method .method public declared-synchronized receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V .locals 1 monitor-enter p0 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; if-nez v0, :cond_0 iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; .line 330 invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p1 goto :goto_1 .line 332 :cond_0 :goto_0 monitor-exit p0 return-void :goto_1 monitor-exit p0 throw p1 .end method .method public declared-synchronized takeHeaders()Lokhttp3/Headers; .locals 2 monitor-enter p0 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; .line 148 invoke-virtual {v0}, Lokio/AsyncTimeout;->enter()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_1 :goto_0 :try_start_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/Deque; .line 150 invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; if-nez v0, :cond_0 .line 151 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->waitForIo()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 goto :goto_2 :cond_0 :try_start_2 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; .line 154 invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/Deque; .line 156 invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z move-result v0 if-nez v0, :cond_1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/Deque; .line 157 invoke-interface {v0}, Ljava/util/Deque;->removeFirst()Ljava/lang/Object; move-result-object v0 check-cast v0, Lokhttp3/Headers; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 monitor-exit p0 return-object v0 :catchall_1 move-exception v0 goto :goto_3 :cond_1 :try_start_3 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException; if-eqz v0, :cond_2 goto :goto_1 .line 159 :cond_2 new-instance v0, Lokhttp3/internal/http2/StreamResetException; iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode; invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;->(Lokhttp3/internal/http2/ErrorCode;)V :goto_1 throw v0 :goto_2 iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; .line 154 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V throw v0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_1 :goto_3 monitor-exit p0 throw v0 .end method .method public waitForIo()V .locals 1 .line 660 :try_start_0 invoke-virtual {p0}, Ljava/lang/Object;->wait()V :try_end_0 .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0 return-void .line 662 :catch_0 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V .line 663 new-instance v0, Ljava/io/InterruptedIOException; invoke-direct {v0}, Ljava/io/InterruptedIOException;->()V throw v0 .end method .method public writeTimeout()Lokio/Timeout; .locals 1 iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout; return-object v0 .end method