ObjOpenSSL  Diff

Differences From Artifact [0e8016afd9]:

To Artifact [97d862768e]:


266
267
268
269
270
271
272
273




274
275
276

277
278
279
280
281
282
283
266
267
268
269
270
271
272

273
274
275
276
277
278
279
280
281
282
283
284
285
286
287







-
+
+
+
+



+







#else
		e->errNo = WSAENOTCONN;
#endif

		@throw e;
	}

	if ((ret = SSL_read(ssl, buffer, (int)length)) < 0)
	if ((ret = SSL_read(ssl, buffer, (int)length)) < 0) {
		if (SSL_get_error(ssl, ret) ==  SSL_ERROR_WANT_READ)
			return 0;

		@throw [OFReadFailedException exceptionWithClass: [self class]
							  stream: self
						 requestedLength: length];
	}

	if (ret == 0)
		atEndOfStream = YES;

	return ret;
}