This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15209|Reply: 0

[Communication] Be careful to write try catch outside of while! and write return in while!

[Copy link]
Posted on 12/16/2015 5:54:26 PM | | |
I had a problem today, which is to do http listening services.

There was a mistake, and I don't even know where it was.

The first time I sent a request, I responded, and then there was no response, and the power was cut off, and I didn't know what the problem was.

It turns out that there is an abnormality in the accepted data, and then it will enter the catch, and then it will jump out of the while loop!!!


Then, I also wrote a return in while, and return jumped out of the method! ! Then I don't go through the while cycle...

Two details, please pay attention!




Previous:Operation of image files, byte[], and BitmapImage in WPF
Next:JD.com's invisible advertising marketing is still in place
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com