Skip to content

Commit 6f91a52

Browse files
author
taras
committed
Better name for variable
1 parent cde915d commit 6f91a52

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

uvloop/sslproto.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cdef class SSLProtocol:
6060
object _outgoing_read
6161

6262
# Buffer for the underlying UVStream buffered reads
63-
bytearray _plain_read_buffer
63+
bytearray _tcp_read_buffer
6464
# Buffer for SSLObject.read calls
6565
# Only allocated when user pass non-buffered Protocol instance
6666
bytearray _ssl_read_buffer

uvloop/sslproto.pyx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ cdef class SSLProtocol:
251251
self._outgoing = ssl_MemoryBIO()
252252
self._outgoing_read = self._outgoing.read
253253

254-
self._plain_read_buffer = PyByteArray_FromStringAndSize(
254+
self._tcp_read_buffer = PyByteArray_FromStringAndSize(
255255
NULL, SSL_READ_DEFAULT_SIZE)
256256
self._ssl_read_max_size_obj = SSL_READ_MAX_SIZE
257257

@@ -366,17 +366,17 @@ cdef class SSLProtocol:
366366
cdef get_buffer_impl(self, size_t n, char** buf, size_t* buf_size):
367367
cdef Py_ssize_t want = min(<Py_ssize_t>n, SSL_READ_MAX_SIZE)
368368

369-
if PyByteArray_GET_SIZE(self._plain_read_buffer) < want:
370-
PyByteArray_Resize(self._plain_read_buffer, want)
369+
if PyByteArray_GET_SIZE(self._tcp_read_buffer) < want:
370+
PyByteArray_Resize(self._tcp_read_buffer, want)
371371
if self._ssl_read_buffer is not None:
372372
PyByteArray_Resize(self._ssl_read_buffer, want)
373373

374-
buf[0] = PyByteArray_AS_STRING(self._plain_read_buffer)
375-
buf_size[0] = PyByteArray_GET_SIZE(self._plain_read_buffer)
374+
buf[0] = PyByteArray_AS_STRING(self._tcp_read_buffer)
375+
buf_size[0] = PyByteArray_GET_SIZE(self._tcp_read_buffer)
376376

377377
cdef buffer_updated_impl(self, size_t nbytes):
378378
mv = PyMemoryView_FromMemory(
379-
PyByteArray_AS_STRING(self._plain_read_buffer),
379+
PyByteArray_AS_STRING(self._tcp_read_buffer),
380380
nbytes,
381381
PyBUF_WRITE
382382
)

0 commit comments

Comments
 (0)