(chrome.socket.read)我返回的ArrayBuffer()被截断(截断)

时间:2013-10-19 10:55:48

标签: sockets truncate google-chrome-app arraybuffer

我正在使用Chrome应用程序为课程执行编程工作,而ArrayBuffer()的回调中返回的chrome.socket.read()会在1 kb处截断> 3 kb POST消息。像这样:

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的限制?我犯了错误吗?

0 个答案:

没有答案