parent
13990e3747
commit
a9ebe20b5b
|
|
@ -2,7 +2,7 @@
|
||||||
%define CommitVersion %(echo $COMMIT_VERSION)
|
%define CommitVersion %(echo $COMMIT_VERSION)
|
||||||
|
|
||||||
Name: libserverframe
|
Name: libserverframe
|
||||||
Version: 1.1.24
|
Version: 1.1.25
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: network framework library
|
Summary: network framework library
|
||||||
License: AGPL v3.0
|
License: AGPL v3.0
|
||||||
|
|
@ -12,9 +12,9 @@ Source: http://github.com/happyfish100/libserverframe/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: libfastcommon-devel >= 1.0.65
|
BuildRequires: libfastcommon-devel >= 1.0.66
|
||||||
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
|
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
|
||||||
Requires: libfastcommon >= 1.0.65
|
Requires: libfastcommon >= 1.0.66
|
||||||
|
|
||||||
%description
|
%description
|
||||||
common framework library
|
common framework library
|
||||||
|
|
|
||||||
11
src/sf_nio.c
11
src/sf_nio.c
|
|
@ -581,10 +581,9 @@ int sf_client_sock_read(int sock, short event, void *arg)
|
||||||
if (task->offset > 0) {
|
if (task->offset > 0) {
|
||||||
if (task->length > 0) {
|
if (task->length > 0) {
|
||||||
logWarning("file: "__FILE__", line: %d, "
|
logWarning("file: "__FILE__", line: %d, "
|
||||||
"client ip: %s, connection "
|
"client ip: %s, connection disconnected, "
|
||||||
"disconnected, expect pkg length: %d, "
|
"expect pkg length: %d, recv pkg length: %d",
|
||||||
"recv pkg length: %d", __LINE__,
|
__LINE__, task->client_ip, task->length,
|
||||||
task->client_ip, task->length,
|
|
||||||
task->offset);
|
task->offset);
|
||||||
} else {
|
} else {
|
||||||
logWarning("file: "__FILE__", line: %d, "
|
logWarning("file: "__FILE__", line: %d, "
|
||||||
|
|
@ -596,8 +595,8 @@ int sf_client_sock_read(int sock, short event, void *arg)
|
||||||
} else {
|
} else {
|
||||||
logDebug("file: "__FILE__", line: %d, "
|
logDebug("file: "__FILE__", line: %d, "
|
||||||
"client ip: %s, sock: %d, recv fail, "
|
"client ip: %s, sock: %d, recv fail, "
|
||||||
"connection disconnected",
|
"connection disconnected", __LINE__,
|
||||||
__LINE__, task->client_ip, sock);
|
task->client_ip, sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
ioevent_add_to_deleted_list(task);
|
ioevent_add_to_deleted_list(task);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue