I am using GM_xmlhttpRequest (greasemonkey xmlhttpRequest) to communicate with my application. Every half second, it sends json to update the status of the page. I am launching 3 pages in FireFox. Using netstat -a, I got these results.
netstat -a
These are more than 200 lines. Why am I using so many ports!?! How can I ... not do this? and still interact with my application.
NOTE: The 3 pages I am on (e.g. google.com) do not match my domain (localhost), so I am sure that normal xmlhttpRequest will not work (I havent tried. I use jquery as a wrapper)
Active Connections Proto Local Address Foreign Address State TCP 0.0.0.0:1234 My-PC:0 LISTENING TCP 127.0.0.1:1234 My-PC:19204 TIME_WAIT TCP 127.0.0.1:1234 My-PC:19205 TIME_WAIT [line 8...] [line 221...] TCP 127.0.0.1:1234 My-PC:19420 TIME_WAIT TCP 127.0.0.1:1234 My-PC:19421 TIME_WAIT TCP 127.0.0.1:1234 My-PC:19422 TIME_WAIT TCP 127.0.0.1:1234 My-PC:19423 TIME_WAIT
TIME_WAIT , , , . - , . , , , . , , . IP- src, src, dst IP, dst-, ( / ). .
, , , TIME_WAIT. , , -, , , , , . , , " ", . , , , , , . , , . , " ", (.. , ).
Source: https://habr.com/ru/post/1756123/More articles:How can I detect directory changes during program execution? - filesystemsGoogle App Engine sample application for downloading and serving arbitrary files - google-app-engineHtml 'Select' control always returns the selected index as 0 - javascriptFuse-Based File System Performance Tips - performanceRandom Android Number - javaDataSets Tutorials - c #Register form Checking two passwords matches - phpИндекс слов PHP, производительность и разумные результаты - performanceTrigger call delay after inserting oracle - oracleДерево структуры сериализации с использованием boost:: serialization - c++All Articles