mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-14 17:03:34 +02:00
src/nhttpd: clean code
Origin commit data
------------------
Commit: 5e4a541781
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-28 (Wed, 28 Nov 2012)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
// yhttpd
|
||||
#include "yhttpd.h"
|
||||
#include <yhttpd.h>
|
||||
#include "ysocket.h"
|
||||
#include "ylogging.h"
|
||||
// system
|
||||
@@ -64,6 +64,7 @@ CySocket::~CySocket() {
|
||||
// initialize
|
||||
//-----------------------------------------------------------------------------
|
||||
void CySocket::init(void) {
|
||||
BytesSend = 0;
|
||||
handling = false;
|
||||
isOpened = false;
|
||||
isValid = true;
|
||||
@@ -194,8 +195,8 @@ CySocket* CySocket::accept() {
|
||||
#else
|
||||
set_tcp_nodelay();
|
||||
#endif
|
||||
new_ySocket->isOpened = true;
|
||||
}
|
||||
new_ySocket->isOpened = true;
|
||||
// handling = true;
|
||||
return new_ySocket;
|
||||
}
|
||||
|
Reference in New Issue
Block a user