Browse Source

Optimize code (#6609)

* update smart-servlet to 0.1.3-SNAPSHOT

* update aio-enhance to 1.0.3-SNAPSHOT

* smart-servlet bugfix

* bugfix

* update smart-socket to 1.5.6-SNAPSHOT

* remove file

* update aio-enhance to 1.0.4-SNAPSHOT

* 优化代码

* 优化代码

* update smart-socket to 1.5.6

* config threadNum

* update smart-socket to 1.5.7-SNAPSHOT

* 优化代码
三刀 4 years ago
parent
commit
5dbbd1f945

+ 0 - 1
frameworks/Java/smart-socket/src/main/java/org/smartboot/http/JsonUtil.java

@@ -19,7 +19,6 @@ public class JsonUtil {
         try {
             stream.reset(null);
             stream.writeVal(obj.getClass(), obj);
-            stream.buffer();
             Slice slice = stream.buffer();
             httpResponse.setContentLength(slice.tail());
             httpResponse.getOutputStream().write(slice.data(), 0, slice.tail());