Optimizations.

This commit is contained in:
Brad Arant committed 2021-09-23 16:28:32 -07:00
1 parent 7e43656c5c
commit 96d9295df8
7 files changed
+34 -30

No files matched your search

+5 -5
View File
@@ -110,19 +110,19 @@ namespace core {
int len;
int error = -1;
for(int ix = 0; ix < buffer.getLength(); ++ix)
buffer[ix] = 0;
// for(int ix = 0; ix < buffer.getLength(); ++ix)
// buffer[ix] = 0;
if((len = ::read(getDescriptor(), buffer.getData(), buffer.getLength())) >= 0) {
coreutils::ZString zbuffer(buffer.getData(), len);
onDataReceived(zbuffer);
}
else {
error = errno;
switch (error) {
// When a listening socket receives a connection
// request we get one of these.
//