#fixed code
                                public void doReconnect(Channel channel, HttpRequest req) {
    	this.isKeepAlive = HttpHeaders.isKeepAlive(req);
    	this.origin = req.getHeader(HttpHeaders.Names.ORIGIN);
    	this.channel = channel;
        this.connected = true;
        sendPayload();
    }
#vulnerable code 
                                public void doReconnect(Channel channel, HttpRequest req) {
    	isKeepAlive = isKeepAlive(req);
    	this.channel = channel;
        this.connected = true;
        sendPayload();
    } 
                            #location 5 
                            #vulnerability type THREAD_SAFETY_VIOLATION