@Override
	public void run() {
		try {
			socket.setSoTimeout(4000);
			in = new BufferedReader(new InputStreamReader(socket.getInputStream(),"utf-8"));

			String msg = "";
			while((msg = in.readLine()) != null){
				msg = URLDecoder.decode(msg,"UTF-8");
				System.out.println(msg);
				if(msg.equals("end")){
					out = new PrintWriter(socket.getOutputStream());
					out.write("success");
					out.flush();
					socket.close();
					break;
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

	}