Refactor cancel async scan architecture 06/78506/4
authorKyungwook Tak <k.tak@samsung.com>
Wed, 6 Jul 2016 01:00:19 +0000 (10:00 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Wed, 6 Jul 2016 06:08:02 +0000 (15:08 +0900)
commita955555c81a28ed2a98b14d545f32bfd5467854c
treee7861ee90fc370f1e4848b45a83eb0dd03a25eb2
parentb189d7c62b4d3bcb2bfc16b5b8dbf7e572036735
Refactor cancel async scan architecture

Before: Check cancelled flag on both of client/server side in loop of
        file visitor. It's hard to control response latency consistently.

After : Change client side connection to non-blocking to cancel it
        directly by sending signal to fd. Response latency is consistent
        because client just close connection.

Change-Id: If181eb9984357939b2845b7d03a17dac57a0b9d0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
15 files changed:
src/CMakeLists.txt
src/framework/client/async-logic.cpp
src/framework/client/async-logic.h
src/framework/client/content-screening.cpp
src/framework/client/eventfd.cpp [new file with mode: 0644]
src/framework/client/eventfd.h [new file with mode: 0644]
src/framework/client/handle-ext.cpp
src/framework/client/handle-ext.h
src/framework/common/dispatcher.cpp
src/framework/common/dispatcher.h
src/framework/common/mainloop.h
src/framework/common/socket.cpp
src/framework/service/cs-logic.cpp
src/framework/service/exception.cpp
src/framework/service/server-service.cpp