20060524 Work plan
今日計劃:
將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.