Hi Wim,

Thanks for your reply. See inline comments.

On 14 March 2011 09:29, Wim Dumon <[email protected]> wrote:
> Hello Bjorn,
>
> What's your operating system?

I'm running an embedded ARM Linux system built with Buildroot (uClibc
toolchain).

> Are you sure it's correctly configured for networking?

My network setup seems to be working, I have no difficulties running
lighttpd, ping, wget or iperf.

> This looks like a problem with sockets/listen/... to
> me (if i'm not mistaken remote_endpoint() is a method from
> boost.asio).

Yes, remote_endpoint() is from boost.asio (just checked).

I found this post on stackoverflow[1] where a guy using boost.asio
gets a similar error as I got from hello.wt. The "accepted answer"
seems to indicate that the problem is the socket is closed. Not really
sure if this is related or not.

Anyway, I'll try to build the system with debug symbols and see if I
get any closer with that.

[1]: 
http://stackoverflow.com/questions/5085162/bad-file-descriptor-error-when-setting-non-blocking-on-a-boostasioiptcpso

Best regards,
Bjørn Forsman

> BR,
> Wim.
>
> 2011/3/11 Bjørn Forsman <[email protected]>:
>> Hi Koen, all,
>>
>> First off, thanks for Wt, it looks very interesting!
>>
>> Now to the issue...
>>
>> I've cross-compiled boost 1.46, Wt 3.1.8 and hello.wt example
>> application for an ARM system. At runtime hello.wt terminates due to
>> "remote_endpoint() threw: Bad file descriptor" (see log below). Any
>> ideas?
>>
>> # hello.wt --docroot . --http-address 0.0.0.0 --http-port 8080
>> Reading: /etc/wt/wt_config.xml
>> [1999-Dec-31 17:29:41.389758] 1129 - [notice] "Wt: initializing built-in 
>> httpd"
>> [1999-Dec-31 17:29:41.395503] 1129 - [notice] "Reading Wt config file:
>> /etc/wt/wt_config.xml (location = 'hello.wt')"
>> [1999-Dec-31 17:29:41.422544] 1129 - [notice] "Started server:
>> http://0.0.0.0:8080";
>> remote_endpoint() threw: Bad file descriptor
>> terminate called after throwing an instance of
>> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
>>>'
>>  what():  Bad file descriptor
>> Aborted
>>
>> Best regards,
>> Bjørn Forsman

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to