Git Product home page Git Product logo

chatterfinity's People

Contributors

roout avatar

Watchers

 avatar  avatar

chatterfinity's Issues

Cache blizzard realm data

Cache the data (realm id, realm status) acquired from the blizzard server.
Then chain functions used to request these data.

fix issue with writting many messages at one time

A code fragment below will lead to problem: an internal outgoing buffer will be overwritten. To fix this issue buffer can't be touched before the whole message had been sent. Use special buffer.

IrcConnection * irc = ...;
irc->Write("Send some text");
irc->Write("Send some more text");
irc->Write("Send another one");

Add time filter for commands invokations

Prevent frequent requests for commands. Imagine, several !arena commands being invoked! If the result hasn't been cached yet, a lot of arena http connections will be born with heavy incoming payloads (around 9 MB)...

Add connection state monitoring

Add connection state to prevent invoking Connection::Connect(...) on the already connected one. It's especially needed for IrcConnection which has Login command

Upgrade logging mechanism

  • introduce aliases for info, error, warn levels
  • maybe it will make more sense to log into one file? IDK
  • log more stuff
  • maybe use FUNCTION macros

Failed to proccess a command from chat

Steps to reproduce:

  1. Login & join channel 'X'
  2. Write within chat from the another account or from the same (shouldn't matter) the command:
    ! <anything>
    with space between ! and the next word.
  3. Write within chat any valid command (for now it's realm-status):
    !realm-status

Result:
Console logs shows that the status was extracted successfully but response failed to appear in channel chat
Expected result:
Message in char with status of the flamefor server

drawing

stream truncated

In connection logs --error: SSL stream shutdown: stream truncated may not be an error because now I'm not ready to handle keep-alive connections. So the stream is will be truncated when connection is closed.

Unify interfaces of HTTP & IRC connections

They handle callback (onReadSuccess) differently:
IrcConnection continue to read and doesn't update callback if it's empty object (on repeated IrcConnection::Read() call) whereas HttpConnection always updates the callback (even if it's empty)

Fix connection shutdown

Closed is being called twice (two error messages about ssl underlying socket shutdown) for irc connection

Connection logging

Create log files (Connection_[\d+].txt) for only failed connections (save log to buffer and dump it to file only on error)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.