Closed mayuri10000 closed 6 years ago
I've written a few more socket implementations after the one in Griffin Framework. With the new async/aways structure it's much easier to write robust async code. However, it would require some effort and it's nothing I currently have time to do.
when I was tried to request for a large .mp4 file from my server, the exception occurred. I visited the url from localhost with Google Chrome, which can play .mp4 files directiy. But if I drug the progress bar for over 5 times, the server application crashed. My code:![image](https://cloud.githubusercontent.com/assets/17867719/21564934/77a2dee6-ce46-11e6-83ff-097bbc567dee.png)
ModuleManager mmgr=new ModuleManager(); Griffin.WebServer.Files.DiskFileService fserv=new Griffin.WebServer.Files.DiskFileService("/","E:\\www"); Griffin.WebServer.Files.MimeTypeProvider.Instance.Add("mp4","video/mp4"); Griffin.WebServer.Files.FileModule fmodule=new Griffin.WebServer.Files.FileModule(fserv); mmgr.Add(fmodule); HttpServer server=new HttpServer(mmgr); // TODO: Implement Functionality Here server.Start(IPAddress.Parse("127.0.0.1"),8000);
screenshot of the exception: