| ... | @@ -754,7 +754,9 @@ pub fn writeAll(c: *Client, stream: net.Stream, bytes: []const u8) !void { | ... | @@ -754,7 +754,9 @@ pub fn writeAll(c: *Client, stream: net.Stream, bytes: []const u8) !void { |
| 754 | } | 754 | } |
| 755 | | 755 | |
| 756 | pub fn eof(c: Client) bool { | 756 | pub fn eof(c: Client) bool { |
| 757 | return c.received_close_notify and c.partial_ciphertext_idx >= c.partial_ciphertext_end; | 757 | return c.received_close_notify and |
| | 758 | c.partial_cleartext_idx >= c.partial_ciphertext_idx and |
| | 759 | c.partial_ciphertext_idx >= c.partial_ciphertext_end; |
| 758 | } | 760 | } |
| 759 | | 761 | |
| 760 | /// Returns the number of bytes read, calling the underlying read function the | 762 | /// Returns the number of bytes read, calling the underlying read function the |