我正在使用 Chrome 应用程序为类进行编程作业,并且ArrayBuffer()
从回调返回的内容chrome.socket.read()
不断截断POST
1 kb 的 >3 kb 消息。像这样:
POST / HTTP/1.1
Host: 127.0.0.1:8081
Connection: keep-alive
Content-Length: 2965
Origin: http://ggp.stanford.edu
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Content-type: application/x-www-form-urlencoded
Accept: */*
Referer: http://ggp.stanford.edu/applications/040100.php
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
(start x040100 robot ((role robot)(<= (base (cell ?M ?N ?P)) (row ?M) (col ?N) (piece ?P))(<= (base (captures ?M)) (scoremap ?M ?N))(<= (base (step ?N)) (succ ?M ?N))(<= (input robot (move ?M1 ?N1 ?M2 ?N2)) (row ?M1) (col ?N1) (knightmove ?M1 ?N1 ?M2 ?N2))(row 1)(row 2)(row 3)(row 4)(row 5)(col 1)(col 2)(col 3)(piece knight)(piece pawn)(piece blank)(init (cell 1 1 knight))(init (cell 1 2 pawn))(init (cell 1 3 pawn))(init (cell 2 1 pawn))(init (cell 2 2 pawn))(init (cell 2 3 pawn))(init (cell 3 1 pawn))(init (cell 3 2 pawn))(init (cell 3 3 pawn))(init (cell 4 1
我尝试将缓冲区大小设置为高以及许多其他事情,甚至下载其他人的服务器应用程序并修改这些应用程序以向自己证明这不仅仅是我。有 1 kb 的限制吗?我犯错了吗?