Mon-Ouie / pry-remote

Connect to Pry remotely
Other
639 stars 81 forks source link

pry-remote just hangs without giving prompt. #83

Open entrity opened 2 years ago

entrity commented 2 years ago

I'm running pry-remote 0.1.8. Although it appears as if I can start the listener with pry_remote, the client pry-remote just hangs without giving me a prompt.

After calling binding.pry_remote in my ruby code, the ruby stdout outputs:

[pry-remote] Waiting for client on druby://127.0.0.1:9876

Then I run pry-remote from a shell, and it appears to just hang. Curious what was going on, I ran socat between the pry-remote client and the listener on port 9876 and got this dump (hex on the left, printed chars on the right):

> 2022/08/12 15:29:37.065581  length=110 from=0 to=109
 00 00 00 03 04 08 30 00 00 00 10 04 08 49 22 0b  ......0......I".
 69 6e 70 75 74 3d 06 3a 06 45 46 00 00 00 04 04  input=.:.EF.....
 08 69 06 00 00 00 40 04 08 75 3a 13 44 52 62 3a  .i....@..u:.DRb:
 3a 44 52 62 4f 62 6a 65 63 74 31 04 08 5b 07 49  :DRbObject1..[.I
 22 1c 64 72 75 62 79 3a 2f 2f 31 32 37 2e 30 2e  ".druby://127.0.
 30 2e 31 3a 33 37 36 36 31 06 3a 06 45 54 6c 2b  0.1:37661.:.ETl+
 08 b4 d3 cc de b9 3f 00 00 00 03 04 08 30        ......?......0
--
< 2022/08/12 15:29:37.067582  length=75 from=0 to=74
 00 00 00 03 04 08 54 00 00 00 40 04 08 75 3a 13  ......T...@..u:.
 44 52 62 3a 3a 44 52 62 4f 62 6a 65 63 74 31 04  DRb::DRbObject1.
 08 5b 07 49 22 1c 64 72 75 62 79 3a 2f 2f 31 32  .[.I".druby://12
 37 2e 30 2e 30 2e 31 3a 33 37 36 36 31 06 3a 06  7.0.0.1:37661.:.
 45 54 6c 2b 08 b4 d3 cc de b9 3f                 ETl+......?
--
> 2022/08/12 15:29:37.068320  length=111 from=110 to=220
 00 00 00 03 04 08 30 00 00 00 11 04 08 49 22 0c  ......0......I".
 6f 75 74 70 75 74 3d 06 3a 06 45 46 00 00 00 04  output=.:.EF....
 04 08 69 06 00 00 00 40 04 08 75 3a 13 44 52 62  ..i....@..u:.DRb
 3a 3a 44 52 62 4f 62 6a 65 63 74 31 04 08 5b 07  ::DRbObject1..[.
 49 22 1c 64 72 75 62 79 3a 2f 2f 31 32 37 2e 30  I".druby://127.0
 2e 30 2e 31 3a 33 37 36 36 31 06 3a 06 45 54 6c  .0.1:37661.:.ETl
 2b 08 a0 d3 cc de b9 3f 00 00 00 03 04 08 30     +......?......0
--
< 2022/08/12 15:29:37.069720  length=75 from=75 to=149
 00 00 00 03 04 08 54 00 00 00 40 04 08 75 3a 13  ......T...@..u:.
 44 52 62 3a 3a 44 52 62 4f 62 6a 65 63 74 31 04  DRb::DRbObject1.
 08 5b 07 49 22 1c 64 72 75 62 79 3a 2f 2f 31 32  .[.I".druby://12
 37 2e 30 2e 30 2e 31 3a 33 37 36 36 31 06 3a 06  7.0.0.1:37661.:.
 45 54 6c 2b 08 a0 d3 cc de b9 3f                 ETl+......?
--
> 2022/08/12 15:29:37.070375  length=111 from=221 to=331
 00 00 00 03 04 08 30 00 00 00 11 04 08 49 22 0c  ......0......I".
 73 74 64 6f 75 74 3d 06 3a 06 45 46 00 00 00 04  stdout=.:.EF....
 04 08 69 06 00 00 00 40 04 08 75 3a 13 44 52 62  ..i....@..u:.DRb
 3a 3a 44 52 62 4f 62 6a 65 63 74 31 04 08 5b 07  ::DRbObject1..[.
 49 22 1c 64 72 75 62 79 3a 2f 2f 31 32 37 2e 30  I".druby://127.0
 2e 30 2e 31 3a 33 37 36 36 31 06 3a 06 45 54 6c  .0.1:37661.:.ETl
 2b 08 f4 e0 4b e0 b9 3f 00 00 00 03 04 08 30     +...K..?......0
--

Do you have any insight? Why is the client not giving me a prompt?