[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X11 Forwarding example


nobody?...


On 19. 11. 2020 0:32, lucky62 wrote:
Program was executed with highest log level and this is my observation.

*Seems that after succesful EXEC polling-in is blocked, and incomming request SSH_MSG_CHANNEL_OPEN (90) is waiting somewhere in buffer...*

When waiting loop is out, then program calls ssh_channel_free (internally ssh_channel_close). Messages SSH_MSG_CHANNEL_EOF (96) and SSH_MSG_CHANNEL_CLOSE (97) are sent, polling is enabled and simultaneously the incoming message SSH_MSG_CHANNEL_OPEN (90) is received.

[2020/11/18 15:13:42.539242, 3] ssh_packet_need_rekey:  packet: [data_rekey_needed=0, out_blocks=44, in_blocks=67
[2020/11/18 15:13:42.539250, 3] ssh_packet_need_rekey:  packet: [data_rekey_needed=0, out_blocks=44, in_blocks=67
[2020/11/18 15:13:42.539259, 2] channel_request:  Channel request*exec success*
*polling is blocked?...****after 5s timeout ssh_channel_free is sending EOF and CLOSE *
[2020/11/18 15:13:53.568543, 3] ssh_packet_need_rekey:  packet: [data_rekey_needed=0, out_blocks=44, in_blocks=67
[2020/11/18 15:13:53.568656, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket

[2020/11/18 15:13:53.568687, 3] packet_send2:  packet: wrote [type=96, len=16, padding_size=10, comp=5, payload=5]
[2020/11/18 15:13:53.568702, 3] ssh_channel_send_eof:*Sent a EOF*  on client channel (43:0)
[2020/11/18 15:13:53.568714, 3] ssh_packet_need_rekey:  packet: [data_rekey_needed=0, out_blocks=44, in_blocks=67

[2020/11/18 15:13:53.568733, 3] packet_send2:  packet: wrote [type=97, len=16, padding_size=10, comp=5, payload=5]
[2020/11/18 15:13:53.568751, 3] ssh_channel_close:*Sent a close*  on client channel (43:0)
[2020/11/18 15:13:53.568769, 4] ssh_socket_pollcallback:  Poll callback on socket 3 (*POLLIN POLLOUT *), out buffer 36

[2020/11/18 15:13:53.568800, 3] ssh_packet_socket_callback:  packet:*read type 90*  [len=48,padding=10,comp=37,payload=37]
[2020/11/18 15:13:53.568816, 3] ssh_packet_process:  Dispatching handler for packet type 90
[2020/11/18 15:13:53.568857, 3] ssh_packet_channel_open:  Clients wants to open a x11 channel
x11callback:
    OrigAddr: |127.0.0.1|
    OrigPort: |55312|
[2020/11/18 15:13:53.568915, 4] ssh_message_channel_request_open_reply_default:  Refusing a channel

So need I call some function to enable polling?
Or is this a library bug?...

Jan



References:
X11 Forwarding examplelucky62 <lucky62@xxxxxxxxxx>
Re: X11 Forwarding examplelucky62 <lucky62@xxxxxxxxxx>
Re: X11 Forwarding exampleAlexander Grotewohl <alex@xxxxxxxxxxx>
Re: X11 Forwarding examplelucky62 <lucky62@xxxxxxxxxx>
Re: X11 Forwarding examplelucky62 <lucky62@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org