[OpenSIPS-Users] openxcap: 64k limit for query results?
Binan AL Halabi
binanalhalabi at yahoo.com
Tue Oct 23 23:30:08 CEST 2012
Hi Greg,
As Wget needs to know the size of data in
advance maybe your JSP page asks corresponding to its buffer size.
Use InputStreamReader when constructing BufferReader in your JSP page.
http://pipasoft.com/free-java-classes/download/wget.java
// Binan
________________________________
Från: Greg Gladman <ggladman at bdigital.org>
Till: OpenSIPS users mailling list <users at lists.opensips.org>
Skickat: tisdag, 23 oktober 2012 11:14
Ämne: Re: [OpenSIPS-Users] openxcap: 64k limit for query results?
Hi Saúl,
The OpenXCAP server in question is an active production machine for other services, so I'm a little hesitant to make changes to the hostfile for testing. :)
I did do an ngrep on the local machine and retry the query, and I do see it returning 64k of data:
HTTP/1.1 200 OK..Content-Length: 65535..Accept-Ranges: bytes..Server: OpenXCAP/2.0.0..ETag: "564e6f706fbf147ee1d7b27668470a81"..Date
> : Tue, 23 Oct 2012 09:01:50 GMT..Content-Type: application/resource-lists+xml....[..]
I've also read that wget can't handle chunked data (although this response doesn't seem to be chunked), so I've tried curl, with similar results:
* Connected to [host.domain] (xx.xx.xx.xx) port 9000 (#0)
>* Server auth using Basic with user '[username at host.domain]'
>> GET /xcap-root/resource-lists/users/[username at host.domain]/index HTTP/1.1
>> Authorization: Basic [..]
>> User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1
>> Host: [host.domain]:9000
>> Accept: */*
>>
>< HTTP/1.1 200 OK
>< Content-Length: 65535
>< Accept-Ranges: bytes
>< Server: OpenXCAP/2.0.0
>< ETag: "[..]"
>< Date: Tue, 23 Oct 2012 09:07:22 GMT
>< Content-Type: application/resource-lists+xml
We may end up implementing a workaround to obtain this specific data via another route, but if you have any other ideas, I'd be happy to give them a try in case anyone else runs into a similar problem.
Cheers,
-greg
On Tue, Oct 23, 2012 at 10:35 AM, Saúl Ibarra Corretgé <saul at ag-projects.com> wrote:
>On Oct 23, 2012, at 10:31 AM, Greg Gladman wrote:
>
>> Hi Saúl, thanks for the quick response.
>>
>> Yes, I'm just doing a standard HTTP GET; I've tried from various browsers, a JSP using java.io.BufferedReader, and a wget from the same machine, and all return just 65535 bytes.
>>
>> If I try with wget from localhost using the external hostname, the results are the same; if I make the query explicitly against localhost, I get a 404 and the log file shows "XCAP root not found for URI".
>>
>> Sorry for what is undoubtedly a newbie question, and thanks again for your help.
>>
>
>You can modify the /etc/hosts file to make your external domain point to 127.0.0.1 and repeat the localhost test. Also, if you do a traffic capture in the OpenXCAP server, do you see OpenXCAP only sending 64K of data?
>
>
>Cheers,
>
>
>--
>Saúl Ibarra Corretgé
>AG Projects
>
>
>
>
>_______________________________________________
>Users mailing list
>Users at lists.opensips.org
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121023/717344a6/attachment.htm>
More information about the Users
mailing list