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

部屋削除時サーバ上のユーザ名と部屋内ニックネームの対応辞書の削除 #14

Open
Yuki-Inamoto opened this issue Jul 9, 2015 · 2 comments

Comments

@Yuki-Inamoto
Copy link
Contributor

部屋を削除しても部屋内で用いられるニックネームとユーザ名の対応辞書がサーバ上のメモリに残ってしまっている。
サーバのメモリの節約のために部屋が削除されたとき上記辞書を削除したい。

@Yuki-Inamoto Yuki-Inamoto changed the title 部屋削除時ユーザ名と部屋内ニックネームの対応辞書の削除 部屋削除時サーバ上のユーザ名と部屋内ニックネームの対応辞書の削除 Jul 9, 2015
@Hironsan
Copy link
Contributor

Hironsan commented Jul 9, 2015

RoomDeleteHandlerで処理する

@ykoga-kyutech
Copy link
Contributor

Chatがclear_cachesメソッドを持っていて、これを使えばニックネームとユーザ名の対応辞書の削除ができる。でも、RoomSocketHandler内で生成されたChatインスタンスをRoomDeleteHandlerに渡せないので、RoomDeleteHandlerがこの対応辞書を削除する手段がみつからない。

clear_cachesメソッドをstaticにすればRoomDeleteHandlerからもアクセスできるが、なんとなく気持ち悪いので放置しておきます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants