Ask Your Question
0

분산서버 콜백 질문

asked 2019-10-30 10:20:13 +0900

yongjupark gravatar image

안녕하세요 고생많으십니다... 현재 Manifest를 통해 각 서버IP를 제쪽으로 맞춰줌으로써 AccountManager.RedirectClient를 호출하였을때 게임서버에 이동되어 세션이 열리는 것까지는 확인이 가능하지만, AccountManager.RegisterRedirectionHandler(OnClientRedirected) 가 호출이 되지 않는 현상이 발생합니다.

물론, 해당 콜백은 이동할 서버에 정의해 놓았습니다.

AccountManager.RedirectClient를 호출하였을때 게임서버에 세션이 열리는것으로 보아 해당 로직에는 문제가 없어 보이는데.. 세션이 열렸을때 콜백이 동작하지않는 현상이.. 잘 이해가 안되네요

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
0

answered 2019-10-30 10:49:53 +0900

yongjupark gravatar image

updated 2019-10-30 10:51:21 +0900

"HardwareInfo": { "external_ip_resolvers": "aws,nic:enp3s0,nat:222.238.29.175:tcp+pbuf=7012:http+json=7018"

HardwareInfo에서 eth0을 enp3s0으로 하니까 호출되네요

edit flag offensive delete link more

Comments

Redirect 시 클라이언트가 새롭게 접속해야할 서버의 IP 주소를 external_ip_resolvers 에 나열된 순서로 얻게 되는데, 잘못된 IP 를 얻고 있었던 것으로 보입니다.

잘 해결되셨다니 다행이네요.

감사합니다.

Seunghyun gravatar imageSeunghyun ( 2019-10-30 11:42:14 +0900 )edit
0

answered 2019-10-30 10:36:39 +0900

yongjupark gravatar image

게임서버 로그입니다.

I1030 10:34:04.606555 6390 (Mono)server.cs:50] Starting game server I1030 10:34:20.669620 6557 transport.cc:478] 클라이언트 플러그인 버전: 313 I1030 10:34:20.669677 6557 session_impl.cc:2210] [C->S] TCP/JSON: type=, length=0, session=00000000-0000-0000-0000-000000000000 I1030 10:34:20.669804 6557 session_impl.cc:2210] [S->C] TCP/JSON: type=_session_opened, length=76, session=ba90ddab-b7d2-47bd-9d30-784ee91da890 {} I1030 10:34:20.669840 6557 session_service.cc:2841] 새 세션을 생성했습니다: sid=ba90ddab-b7d2-47bd-9d30-784ee91da890, protocol=TCP, encoding=application/json, address=222.238.29.175:54802 I1030 10:34:20.695472 6574 (Mono)gameserver.cs:52] GameServer SessionOpened I1030 10:34:20.723464 6557 transport.cc:478] 클라이언트 플러그인 버전: 313 I1030 10:34:20.723553 6557 session_impl.cc:2210] [C->S] TCP/JSON: type=, length=0, session=00000000-0000-0000-0000-000000000000 I1030 10:34:20.723625 6557 session_impl.cc:2210] [S->C] TCP/JSON: type=_session_opened, length=76, session=2e4fa284-8644-4908-ba13-44cdde61ac01 {} I1030 10:34:20.723685 6557 session_service.cc:2841] 새 세션을 생성했습니다: sid=2e4fa284-8644-4908-ba13-44cdde61ac01, protocol=TCP, encoding=application/json, address=222.238.29.175:54804 I1030 10:34:20.724133 6573 (Mono)gameserver.cs:52] GameServer SessionOpened W1030 10:35:04.455699 6450 rpc_service.cc:1255] RPC Status: self_id=989096c2-64af-3723-0000-000000000000, connected=2, connecting=0 W1030 10:36:04.455747 6450 rpc_service.cc:1255] RPC Status: self_id=989096c2-64af-3723-0000-000000000000, connected=2, connecting=0

edit flag offensive delete link more
0

answered 2019-10-30 10:35:58 +0900

yongjupark gravatar image

로비서버 로그입니다.

I1030 10:34:02.520915 6314 (Mono)server.cs:50] Starting lobby server W1030 10:34:03.637851 6430 rpc_service.cc:1526] New RPC server discovered: peer_id=989096c2-64af-671b-0000-000000000000, info={"flavor":"matchmaker","ep":"222.238.29.175:7015"} W1030 10:34:03.637920 6430 rpc_service.cc:2202] Registering peer: 989096c2-64af-671b-0000-000000000000 W1030 10:34:03.638294 6395 rpc_service.cc:657] RPC server connected: peer=989096c2-64af-671b-0000-000000000000(A)(222.238.29.175:7015) W1030 10:34:03.638867 6396 rpc_service.cc:819] RPC server handshaking completed: peer=989096c2-64af-671b-0000-000000000000(A)(222.238.29.175:7015), Total RPC peers=2 I1030 10:34:03.638979 6396 matchmaking.cc:497] Matchmaking server connected: peer_id=989096c2-64af-671b-0000-000000000000 W1030 10:34:04.455268 6430 rpc_service.cc:1526] New RPC server discovered: peer_id=989096c2-64af-3723-0000-000000000000, info={"flavor":"game","ep":"222.238.29.175:9015"} W1030 10:34:04.455318 6430 rpc_service.cc:2202] Registering peer: 989096c2-64af-3723-0000-000000000000 E1030 10:34:04.455523 6396 rpc_peer.cc:559] Failed to set TCP_NODELAY for RPC: system:9 W1030 10:34:04.455780 6396 rpc_service.cc:659] RPC server connection failed: peer=989096c2-64af-3723-0000-000000000000(A)(222.238.29.175:9015) W1030 10:34:04.455822 6396 rpc_service.cc:602] Scheduled to reconnect to RPC server: peer=989096c2-64af-3723-0000-000000000000(A)(222.238.29.175:9015), after=10ms W1030 10:34:04.466079 6393 rpc_service.cc:657] RPC server connected: peer=989096c2-64af-3723-0000-000000000000(A)(222.238.29.175:9015) W1030 10:34:04.466473 6395 rpc_service.cc:819] RPC server handshaking completed: peer=989096c2-64af-3723-0000-000000000000(A)(222.238.29.175:9015), Total RPC peers=3 I1030 10:34:08.776528 6427 transport.cc:478] 클라이언트 플러그인 버전: 313 I1030 10:34:08.776633 6427 session_impl.cc:2210] [C->S] TCP/JSON: type=, length=0, session=00000000-0000-0000-0000-000000000000 I1030 10:34:08.776938 6427 session_impl.cc:2210] [S->C] TCP/JSON: type=_session_opened, length=76, session=3003ec70-0617-45a5-bac5-302a31629261 {} I1030 10:34:08.777014 6427 session_service.cc:2841] 새 세션을 생성했습니다: sid=3003ec70-0617-45a5-bac5-302a31629261, protocol=TCP, encoding=application/json, address=222.238.29.175:38948 I1030 10:34:08.802013 6453 (Mono)lobbyserver.cs:67] OPEN : 3003ec70-0617-45a5-bac5-302a31629261 I1030 10:34:10.462031 6426 session_impl.cc:2210] [C->S] TCP/JSON: type=login, length=84, session=3003ec70-0617-45a5-bac5-302a31629261 {"id":"Dragonfly2"} I1030 10:34:10.480432 6454 (Mono)lobbyserver.cs:149] Client_ip_address : 222.238.29.175 I1030 10:34:10.515614 6455 (Mono)lobbyserver.cs:224] Succeed to login: id=Dragonfly2 I1030 10:34:10.532054 6455 session_impl.cc:2210] [S->C] TCP/JSON: type=login, length=105, session=3003ec70-0617-45a5-bac5-302a31629261 {"result":"successed","id":"Dragonfly2"} I1030 10:34:11.378741 6428 session_impl.cc:2210] [C->S] TCP/JSON: type=match, length=66, session=3003ec70-0617-45a5-bac5-302a31629261 {} I1030 10:34:11.381381 6453 (Mono)lobbyserver.cs:254] Match ID : Dragonfly2 I1030 10:34:18.089728 6429 transport.cc:478] 클라이언트 플러그인 버전: 313 I1030 10:34:18.089797 6429 session_impl.cc:2210] [C->S] TCP/JSON: type=, length=0, session=00000000-0000-0000-0000-000000000000 I1030 10:34:18.089951 6429 session_impl.cc:2210] [S->C] TCP/JSON: type=_session_opened, length=76, session=64cf76a2-e188-4372-80d4-2581293d201a {} I1030 10:34:18.089999 6429 session_service.cc:2841] 새 ... (more)

edit flag offensive delete link more
0

answered 2019-10-30 10:21:49 +0900

Seunghyun gravatar image

안녕하세요.

아이펀팩토리입니다.

이동되는 서버(game)도 "-v=2 -session_message_logging_level=2" 를 추가하여 생성된 로그를 올려주실 수 있을까요?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-10-30 10:20:13 +0900

Seen: 35 times

Last updated: Oct 30