rem: resp.raw+=this.socket.recvline(); m=resp.raw.match(/^([0-9]{3})([- ])(.*)$/); 
add: line=this.socket.recvline(); this.response.raw += line; m=line.match(/^([0-9]{3})([- ])(.*)$/); 
context: function GNATS_get_response(){	var line;	var m;	this.error='';	this.response.message='';	this.response.text='';	this.response.raw='';	this.response.code=0;	this.response.type=PR_ERROR;	if(!this.socket.is_connected) {		this.error="Socket not connected";		return(false);	}	while(!done) {		if(this.socket.poll(30)) {			resp.raw+=this.socket.recvline();			m=resp.raw.match(/^([0-9]{3})([- ])(.*)$/);			if(m != undefined && m.index>-1) {				this.response.code=parseInt(m[1]);				this.response.message+=m[3];				if(m[2]=='-')					this.response.message+="\r\n";				else					done=true;				switch((this.response.code/100).toFixed(0)) {					case '2':						this.response.type=PR_SUCCESS;						break;					case '3':						if(this.response.code < 350)							this.response.type=PR_SENDING_DATA;						else							this.response.type=PR_QUERY_SUCCESS;						break;					case '4':					case '5':						this.response.type=PR_ERROR;						this.error+=this.response.message;						break;					case '6':						this.response.type=PR_RETRY;						this.error+=this.response.message;						break;				}			}			else {				this.error="Malformed response";				return(false);			}		}		else {			this.error="Timeout waiting for response";			return(false);		}	}	if(this.response.type==PR_SENDING_DATA) {		done=false;		while(!done) {			if(this.socket.poll(30)) {				line=this.socket.recvline();				if(line != undefined) {					if(line==".") {						done=true;					}					else {						line=line.replace(/^\.\./,'.');						this.response.text+=line+"\r\n";					}				}				else {					this.error="Error while recieving data";					return(false);				}			}			else {				this.error="Timeout waiting for data";				return(false);			}		}	}	return(true);}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/0e1cacb06b8ee767cd9666579b801a20adda05cb/gnatslib.js/clean/load/gnatslib.js