Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.3.0 #181

Merged
merged 21 commits into from
Sep 13, 2024
Merged

Release v2.3.0 #181

merged 21 commits into from
Sep 13, 2024

Conversation

ThePedroo
Copy link
Contributor

@ThePedroo ThePedroo commented Sep 12, 2024

Notice

  • I understand the code that I have edited, and have the means
    to test it before making changes to Concord.

This PR introduces a couple of things:

Features

  • Improved documentation info and grammar
  • Added string description for some error codes
  • Added a cross-compilation guide

Bug fixes

  • Fix memory leak when using reason option
  • Fix Build in Cygwin
  • Fix not restarting connection in a zombie connection
  • Fix unexpected TLS shutdown
  • Fix connections ended with 1000 close code not being reconnected
  • Fix possible issues when statically linking Concord with OpenSSL
  • Fix gencodecs data about Discord roles previously parsed as discord_role

lcsmuller and others added 21 commits August 5, 2023 14:20
Removed extra parameters from the discord_rest_run which were "added" on QuerieC PR.

Co-authored-by: Lucas Müller <lucas@muller.codes>
Co-authored-by: HackerSmacker <hackersmackertech@gmail.com>
Fix incorrect typing for `struct discord_roles`, it should be an array
of role ids, rather than an array of `struct discord_role`
Use curl_free() in order to address scenarios where libcurl is using its
custom mallocs which are incompatible with libc's
Completely remove lingering header node, previous node should point to
the next
- Add string description for some missing error codes
- Rename code enumerators that are in the same grouping
- Fix by changing status to `WS_DISCONNECTED` when TLS connection is
ended, then avoid sending a request at `discord_gateway_perform()`
by checking on the current websockets status
For debbuging unexpected TLS connection shutdowns
Should notify of abrupt disconnect only if current state
is not WS_DISCONNECTING
This function is obsolete and the name causes problems when linking with OpenSSL statically.
* fix(gateway): not reconnecting on 1000 close codes

This commit fixes the issue that it wouldn't reconnect on 1000 close codes.

* fix(websockets): not calling on_close on TLS notify

This commit fixes the issue that once a TLS notify was received, it wouldn't call on_close, ending up stuck in loop, not reconnecting.

* fix(loop): not breaking loop on `DISCORD_SESSION_SHUTDOWN`

This commit fixes an issue that the discord-loop loop wouldn't be breaken to reconnect, causing the bot to be stuck in the state of disconnected.

* chore(websocket): update `already closed` ws message

This commit updated the message that is printed to the terminal when a `ws_close` is called on a connection that has already ended.

* revert(gateway): unnecessary cleanup

This commit reverts a cleanup that is unnecessary as it's expected that `discord_cleanup` is called after `discord_run`.

---------

Co-authored-by: Lucas Müller <lucas@muller.codes>
This commit fixes a memory leak that happened when a reason was set for some request.
This commit adds the check that verifies if the connection is dead, AKA zombie. Without this, once internet was unavailable for a certain time, Discord would stop responding to the heartbeats and wouldn't send any events, causing to the bot be offline, while the process would be still alive.
This fix is totally based off Anotra's PR commits #172, adapted to work on dev before the PR is merged.
@ThePedroo ThePedroo requested a review from lcsmuller September 12, 2024 03:24
@lcsmuller
Copy link
Collaborator

Great! Can you follow the pattern of the PR from the latest release?

#147

@lcsmuller
Copy link
Collaborator

You can bump the version to 2.3.0

@ThePedroo ThePedroo changed the title Merge dev into master Release v2.3.0 Sep 13, 2024
@ThePedroo ThePedroo added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Sep 13, 2024
@lcsmuller lcsmuller merged commit 558f156 into master Sep 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants