Re: [Lynx-dev] Cancel a goto request
Dixi quod… >dan d. dixit: > >>I know control g will cancel many goto and/or link requests. But when >>I get a "waiting for response" it does nothing and that can remain for >>a very long time. > >You can hit “z” there, unless it’s in that weird state where only >http://www.mirbsd.org/htman/i386/man8/tcpdrop.htm on the connection >will help (search the mailing list archives for details). Tonight I found the GNU/Linux (possibly general) equivalent, out of necessity. Trying tcpkill from the dsniff package didn’t help (no active packets), cutter’s also not adequate, but this works: 1. Figure out the pid of the right lynx instance $ ps x | fgrep lynx 3006 pts/9S+ 0:30 lynx 2. Figure out which fd is connected to the hung socket your pid here └───↓ $ ls -ln /proc/3006/fd total 0 lrwx-- 1 1000 1000 64 Oct 8 23:20 0 -> /dev/pts/9 lrwx-- 1 1000 1000 64 Oct 8 23:20 1 -> /dev/pts/9 lrwx-- 1 1000 1000 64 Oct 8 23:20 2 -> /dev/pts/9 lrwx-- 1 1000 1000 64 Oct 8 23:20 3 -> socket:[3031947] 3. Use a ptrace attach to close it fd number herepid here └─↓ ↓───┘ $ gdb --batch -ex 'print close(3)' /usr/bin/lynx 3006 HTH & HAND, //mirabilos -- This space for rent. https://paypal.me/mirabilos to support my work. ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] Cancel a goto request
> I know control g will cancel many goto and/or link requests. But > when I get a "waiting for response" it does nothing and that can > remain for a very long time. > Is there or could there be a similar command to cancel a request in > all contexts regardless of how the target is responding? z maybe? In my experience that usually does what it sounds to me as though you want. I don't know about "all contexts", but it works in enough cases to be useful to me. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev
Re: [Lynx-dev] Cancel a goto request
dan d. dixit: >I know control g will cancel many goto and/or link requests. But when >I get a "waiting for response" it does nothing and that can remain for >a very long time. You can hit “z” there, unless it’s in that weird state where only http://www.mirbsd.org/htman/i386/man8/tcpdrop.htm on the connection will help (search the mailing list archives for details). >Is there or could there be a similar command to cancel a request in >all contexts regardless of how the target is responding? In most contecēs it’s ^G (Ctrl-G), just not for downloads and DNS resolving. bye, //mirabilos -- 22:20⎜ The crazy that persists in his craziness becomes a master 22:21⎜ And the distance between the craziness and geniality is only measured by the success 18:35⎜ "Psychotics are consistently inconsistent. The essence of sanity is to be inconsistently inconsistent ___ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev