[OpenSIPS-Users] openxcap: 64k limit for query results?

Greg Gladman ggladman at bdigital.org
Tue Oct 23 11:14:49 CEST 2012


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121023/da81ad09/attachment.htm>


More information about the Users mailing list