Sync server: run() returns spuriously

28 views
Skip to first unread message

Arun Chandrasekaran

unread,
May 11, 2012, 3:01:52 AM5/11/12
to cpp-n...@googlegroups.com
Hi all,

Attached is the pseudo code for the server code that creates a HTTP server on a new thread.

Sometimes, the run() method of the HTTP server returns immediately (mostly when there is no client is connected) and sometimes it works fine.

Can someone explain me where I'm going wrong or is this a bug in the library?

Thanks,
Arun
cpp-netlib-error.cpp

Arun Chandrasekaran

unread,
May 11, 2012, 7:57:37 AM5/11/12
to cpp-n...@googlegroups.com
Just an update. Attached is the strace of the child thread.
1.strace
Message has been deleted

Dean Michael Berris

unread,
May 14, 2012, 12:31:23 AM5/14/12
to cpp-n...@googlegroups.com
On Fri, May 11, 2012 at 10:12 PM, Arun Chandrasekaran
<vision...@gmail.com> wrote:
> Just an update. Attached is the strace output of the child thread.
>
>
> On Friday, 11 May 2012 12:31:52 UTC+5:30, Arun Chandrasekaran wrote:
>>
I cannot reproduce this -- and the code that you've attached is incomplete.

Also, please identify what version of the library, of Boost, and what
compiler you're using on what platform so that we can better help you
out.

Cheers

--
Dean Michael Berris
Technical Solutions Engineer
Google

Arun Chandrasekaran

unread,
May 14, 2012, 4:31:22 AM5/14/12
to cpp-n...@googlegroups.com
Hi Dean,

I cannot reproduce this -- and the code that you've attached is incomplete.

Sorry for the previous bad report. Here you go.
Attached is the complete server code. The client is a JBoss based HTTP client.
 
Also, please identify what version of the library, of Boost, and what
compiler you're using on what platform so that we can better help you
out.
 
OS: RHEL 5
GCC version: 4.1.2
Boost version: 1.48.0/1.49.0
CPP-Netlib version: 0.9.2/0.9.3/0.9.4

Please let me know if you need any other information.

Cheers,
Arun
Server.cpp
Reply all
Reply to author
Forward
0 new messages