Download Jar. Libraryless. Click here for Pure Java version (2677L/18K).
1 | !7 |
2 | |
3 | p { |
4 | final int count = parseInt(loadPage(butterBotURL(#1016548) + "/" + randomID() + hquery(count := 0))); |
5 | set loadPage_debug; |
6 | Thread t = startThread("Connect", r { |
7 | S s = loadPageWithTimeout(butterBotURL(#1016548) + "/" + randomID() + hquery(+count), 20000); |
8 | print("page: " + s); |
9 | }); |
10 | sleepSeconds(5); |
11 | pnl(vm_generalSubMap("InputStream per thread")); |
12 | print("Interrupting."); |
13 | interruptThread(t); |
14 | } |
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: | 435 / 1146 |
Version history: | 10 change(s) |
Referenced in: | [show references] |