今日计划:
将Socket to Socket transfer 部分的代码做一个小结。
首先清楚where are we first.
最核心的功能部分已经完成。已作完了主要功能的测试。Request direct transfer and Response direct transfer都已完成(HTTPClient部分是基于NBIO persistence的) 还需要将基于NBIO部分的功能补进来。预计时间今天上午。仔细想想不忙,先将出错处理部分以及configure 部分补全然后测试完成再在NBIO部分上补齐功能都可以,这个计划看起来更好一点。
然后将STS超时检测机制要做出来。无非是判断是否timeout 然后调用abortTransfer() 方法即可。 预计时间2个小时。 let's start with Error processing
Distracted by the Persistence code , only half day lefted .
Now something was clarified. when HttpClient Socket Channel is wirte channel and some error happened during Request transfer I need to invoke processError to make sure error get logged in both CDR file and SYS log file and Error response will be sent out to client. but if error happen during response transfer operation, actually a success access entry already write to CDR file it's meanless to send another error response back and add a failed access entry into it. So just close the opened socket channel is enough.