@SuppressWarnings("unused")
    public void run() {
        Socket s2;
        try {
            s2 = new Socket("localhost",
                    InitiationDispatcher.LOGGING_SERVER_CONNECTION_PORT);

            LogManager.getLogger(Lab6Test1.class).log(Level.DEBUG,
                    "connected: {}, addr: {}, remote: {}", s2.isConnected(),
                    s2.getLocalAddress(), s2.getRemoteSocketAddress());
            long startTime = System.currentTimeMillis();
            for (long i = 0; i < R.REQUESTS_COUNT; ++i) {
                s2.getOutputStream().write(randomString(400).getBytes());
                s2.getOutputStream().flush();
                if (i % 1000 == 0) {
                    LogManager.getLogger(Lab6Test3.class).debug(
                            "sent {} logs time {}", i,
                            System.currentTimeMillis() - startTime);
                }
                if (R.SLEEP_BETWEEN_RECORDS > 0) {
                    TimeUnit.SECONDS.sleep(R.SLEEP_BETWEEN_RECORDS);
                }
            }
            s2.close();
            LogManager.getLogger(Lab6Test3.class).debug("sender {} ends", this);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }