ObjFW  Check-in [a3eee50a18]

Overview
Comment:-[OFSecureTransportTLSStream hasDataInReadBuffer]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a3eee50a185ab97877cabb1a2983ca15b85cf1bb9c6637f1d29eb6bc76fce2b1
User & Date: js on 2021-11-13 21:09:58
Other Links: manifest | tags
Context
2021-11-19
22:54
OFApplication: Always store argc and argv check-in: 2ca00fefff user: js tags: trunk
2021-11-13
21:09
-[OFSecureTransportTLSStream hasDataInReadBuffer] check-in: a3eee50a18 user: js tags: trunk
20:28
Add OFSecureTransportTLSStream check-in: 112eb62f7b user: js tags: trunk
Changes

Modified src/OFSecureTransportTLSStream.m from [56d8fa21c4] to [6a4157afd5].

135
136
137
138
139
140
141











142
143
144
145
146
147
148
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159







+
+
+
+
+
+
+
+
+
+
+







		@throw [OFWriteFailedException exceptionWithObject: self
						   requestedLength: length
						      bytesWritten: ret
							     errNo: 0];

	return ret;
}

- (bool)hasDataInReadBuffer
{
	size_t bufferSize;

	if (SSLGetBufferedReadSize(_context, &bufferSize) == noErr &&
	    bufferSize > 0)
		return true;

	return super.hasDataInReadBuffer;
}

- (void)asyncPerformClientHandshakeWithHost: (OFString *)host
				runLoopMode: (OFRunLoopMode)runLoopMode
{
	static const OFTLSStreamErrorCode initFailedErrorCode =
	    OFTLSStreamErrorCodeInitializationFailed;
	id exception = nil;