20060524 Work plan
今日計(jì)劃:
將Socket to Socket transfer 部分的代碼做一個小結(jié)。
首先清楚where are we first.
最核心的功能部分已經(jīng)完成。已作完了主要功能的測試。Request direct transfer and Response direct transfer都已完成(HTTPClient部分是基于NBIO persistence的) 還需要將基于NBIO部分的功能補(bǔ)進(jìn)來。預(yù)計(jì)時(shí)間今天上午。仔細(xì)想想不忙,先將出錯處理部分以及configure 部分補(bǔ)全然后測試完成再在NBIO部分上補(bǔ)齊功能都可以,這個計(jì)劃看起來更好一點(diǎn)。
然后將STS超時(shí)檢測機(jī)制要做出來。無非是判斷是否timeout 然后調(diào)用abortTransfer() 方法即可。? 預(yù)計(jì)時(shí)間2個小時(shí)。 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.