Hi,
I am trying to get my client to use persistent connections to its
owserver because, frankly, I think that setting up a separate connection
for each request is rather stupid.
However, the server doesn't seem to like that:
SEND 0 31 4 4 0 0 '/uncached/1F.0CB204000000/main\x00'
... and no further response is forthcoming.
strace'ing owdir on this path shows that the server just closes the
connection without replying. owdir therefore retries three times
because, I assume, it thinks that the server is broken.
>> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
>> connect(3, {sa_family=AF_INET, sin_port=htons(4304),
>> sin_addr=inet_addr("127.0.0.1")}, 16) = 0
>> getsockname(3, {sa_family=AF_INET, sin_port=htons(60732),
>> sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
>> close(3) = 0
>> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
>> connect(3, {sa_family=AF_INET, sin_port=htons(4304),
>> sin_addr=inet_addr("127.0.0.1")}, 16) = 0
>> writev(3, [{"\0\0\0\0\0\0\0\37\0\0\0\7\0\0\1\2\0\0\0\0\0\0\0\0", 24},
>> {"/uncached/1F.0CB204000000/main\0", 31}, {NULL, 0}, {NULL, 0}, {NULL, 0}],
>> 5) = 55
>> select(4, [3], NULL, NULL, {2, 0}) = 1 (in [3], left {1, 10000})
>> read(3, "", 24) = 0
>> close(3) = 0
>> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
>> connect(3, {sa_family=AF_INET, sin_port=htons(4304),
>> sin_addr=inet_addr("127.0.0.1")}, 16) = 0
>> writev(3, [{"\0\0\0\0\0\0\0\37\0\0\0\4\0\0\1\2\0\0\0\0\0\0\0\0", 24},
>> {"/uncached/1F.0CB204000000/main\0", 31}, {NULL, 0}, {NULL, 0}, {NULL, 0}],
>> 5) = 55
>> select(4, [3], NULL, NULL, {2, 0}) = 1 (in [3], left {1, 560000})
>> read(3, "", 24) = 0
>> close(3) = 0
May I respectfully suggest that this is a bug ;-) and that a proper end
packet (i.e., zero-length) should be sent in this case?
May I also suggest that owshell should not connect, disconnect, and
connect again, before it starts sending an actual request? This is
ugly.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
Murphy's Laws:
(1) If anything can go wrong, it will.
(2) Nothing is as easy as it looks.
(3) Everything takes longer than you think it will.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers