Download Jar. Libraryless. Click here for Pure Java version (2677L/18K).
!7 p { final int count = parseInt(loadPage(butterBotURL(#1016548) + "/" + randomID() + hquery(count := 0))); set loadPage_debug; Thread t = startThread("Connect", r { S s = loadPageWithTimeout(butterBotURL(#1016548) + "/" + randomID() + hquery(+count), 20000); print("page: " + s); }); sleepSeconds(5); pnl(vm_generalSubMap("InputStream per thread")); print("Interrupting."); interruptThread(t); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016565 |
Snippet name: | Test interrupting loadPageWithTimeout (OK, but server doesn't notice if in long poll) |
Eternal ID of this version: | #1016565/11 |
Text MD5: | 9524d0fcc19ec3e0d3fd9d67174be751 |
Transpilation MD5: | 5311581b7a817100b59497dd21c44df9 |
Author: | stefan |
Category: | javax / network |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-23 19:44:08 |
Source code size: | 436 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 436 / 1150 |
Version history: | 10 change(s) |
Referenced in: | -