gotosocial/internal/api/client
kim 291e180990
[bugfix] fix possible mutex lockup during streaming code (#2633)
* rewrite Stream{} to use much less mutex locking, update related code

* use new context for the stream context

* ensure stream gets closed on return of writeTo / readFrom WSConn()

* ensure stream write timeout gets cancelled

* remove embedded context type from Stream{}, reformat log messages for consistency

* use c.Request.Context() for context passed into Stream().Open()

* only return 1 boolean, fix tests to expect multiple stream types in messages

* changes to ping logic

* further improved ping logic

* don't export unused function types, update message sending to only include relevant stream type

* ensure stream gets closed 🤦

* update to error log on failed json marshal (instead of panic)

* inverse websocket read error checking to _ignore_ expected close errors
2024-02-20 18:07:49 +00:00
..
accounts [chore] Disable Move API endpoints for now until Move is fully implemented in the backend (#2650) 2024-02-17 17:03:44 +01:00
admin [bugfix] Fix Postgres emoji delete, emoji category change (#2570) 2024-01-29 14:57:22 +00:00
apps [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
blocks [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
bookmarks [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
customemojis [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
favourites [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
featuredtags [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
filters [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
followrequests [feature] Add requested_by to relationship model (#2672) 2024-02-20 17:50:54 +00:00
instance [feature] Parse instance descriptors as markdown, show T&C on /about (#2481) 2024-01-05 13:39:31 +01:00
lists [chore] Add a couple tests for updating list entries (#2580) 2024-01-28 13:01:12 +01:00
markers [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
media [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
notifications [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
polls [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
preferences [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
reports [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
search [bugfix] Ensure pre renders as expected, fix orderedCollectionPage (#2434) 2023-12-10 12:36:00 +01:00
statuses [bugfix] Ensure pre renders as expected, fix orderedCollectionPage (#2434) 2023-12-10 12:36:00 +01:00
streaming [bugfix] fix possible mutex lockup during streaming code (#2633) 2024-02-20 18:07:49 +00:00
timelines [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
user [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00