diff --git a/examples/file_client/file_client.cpp b/examples/file_client/file_client.cpp index 71b36f3b0fd75a4ef58b134667fa131a17a96325..6d25beaaaf8139886adb90e71812511a3a731f0e 100644 --- a/examples/file_client/file_client.cpp +++ b/examples/file_client/file_client.cpp @@ -5,6 +5,9 @@ #define ASCS_SERVER_PORT 5050 #define ASCS_DELAY_CLOSE 5 //define this to avoid hooks for async call (and slightly improve efficiency) #define ASCS_PASSIVE_RECV +#ifndef ASCS_DECREASE_THREAD_AT_RUNTIME +#define ASCS_AVOID_AUTO_STOP_SERVICE +#endif #define ASCS_RECV_BUFFER_TYPE std::vector //scatter-gather buffer, it's very useful under certain situations (for example, ring buffer). #define ASCS_SCATTERED_RECV_BUFFER //used by unpackers, not belongs to ascs //configuration diff --git a/examples/file_server/makefile b/examples/file_server/makefile index eea8293f20ba94e65d93c33e3bd1a03572bee0ee..ed39c3f11233b3e9dca49282688378793271c5fd 100644 --- a/examples/file_server/makefile +++ b/examples/file_server/makefile @@ -1,6 +1,6 @@ module = file_server -ext_cflag = -DASCS_RESTORE_OBJECT -DASCS_SERVER_PORT=5050 -DASCS_START_OBJECT_ID=500 -DASCS_WANT_MSG_SEND_NOTIFY -DASCS_INPUT_QUEUE=non_lock_queue +ext_cflag = -DASCS_RESTORE_OBJECT -DASCS_SERVER_PORT=5050 -DASCS_START_OBJECT_ID=500 -DASCS_WANT_MSG_SEND_NOTIFY -DASCS_AVOID_AUTO_STOP_SERVICE -DASCS_INPUT_QUEUE=non_lock_queue ext_cflag += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE include ../config.mk