Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not load html with 2 and more files.js on Windows #2587

Open
Arkady23 opened this issue Dec 17, 2022 · 2 comments
Open

Not load html with 2 and more files.js on Windows #2587

Arkady23 opened this issue Dec 17, 2022 · 2 comments
Labels

Comments

@Arkady23
Copy link

Arkady23 commented Dec 17, 2022

Files.js are not uploaded, specified in the html document if there is more than one file.js in Windows.
I tried to figure out this problem, but I read in the specification that when parsing html, browsers load all the script files.js specified there at the same time. That's probably why I have only 1 of the 2 scripts.js loaded.

In the html-document, I have it indicated like this, but the browsers, as if it were not indicated, collect all the scripts and download them from the server, which I have written in ncat.exe , simultaneously!

<script src="j/o.js"></script>
<script src="j/s.js"></script>
</head>

ncat.exe it starts like this:
ncat.exe -klp 8080 -e "C:/Windows/SysWOW64/cscript.exe //Nologo httpd.session.wsf"

I.e. ncat.exe sees only 1 request for 1 script.

Maybe these requests can be queued somehow? So as not to miss anything.

By the way, some images also do not load until they are cached.

@Arkady23 Arkady23 added the Ncat label Dec 17, 2022
@Arkady23
Copy link
Author

Arkady23 commented Jan 3, 2023

While waiting for an answer, I mastered C# and made my program using this object:
Server = new TcpListener(IPAddress.Any, port);
and the method of accessing the stream:
Server.BeginAcceptSocket(new AsyncCallback(AcceptProc),Server);
Everything works fine, packets do not disappear. I hope you will finish ncat in the future too. I noticed such a feature in the work of nat - the packet disappears at the moment when ncat loads the processor very much, apparently something is looped. It would be necessary to increase the delay interval in this cycle so that the processor does not load. And TcpListener does not load anything in such situations when a lot of requests are received. Perhaps ncat works much better on Linux.

@Arkady23
Copy link
Author

My server:
https://github.com/Arkady23/http.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant