SipcRequest request = this.findRequest(response);
response.setRequest(request);
//找到了对应的请求,然后判断是否回复已经到了指定的回复次数,如果到了就从队列中移除,如果没有,就不移除
if(request!=null) {
request.incReplyTimes();
if(request.getNeedReplyTimes()==request.getReplyTimes()) {
synchronized(this.requestQueue) {
this.requestQueue.remove(request);
}
}