xataface | building data-driven web applications | Database library
kandi X-RAY | xataface Summary
kandi X-RAY | xataface Summary
A framework for building rich, data-driven applications in PHP and MySQL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle GET requests
- Get next token
- Parse select command
- Highlight a highlight tag
- Load fields ini file
- Parses CSS .
- Process function callback .
- Decodes a string
- Returns a list of actions
- Save transient fields .
xataface Key Features
xataface Examples and Code Snippets
Community Discussions
Trending Discussions on xataface
QUESTION
My CN1 app uses XFClient to communicate with mySQL database on a server running Xataface. The timer thread calls XFClient's findAndWait method and then sleeps 1 second before repeating. It works well 99+% of the time but sometimes the app encounters a network problem (Bad Gateway, ConnectionExceptions, SocketTimeOutException, etc.) and stops communicating with the server because findAndWait keeps waiting in spite of the exception. Is there a way for findAndWait to stop waiting when an exception occurs?
Here’s what I’ve tried so far:
- comsume the error. This suppresses the error message to the user but the findAndWait keeps waiting
- Request.setTimeout(5000) to kick out after 5 secs (based on SocketTimeoutException in CodeNameOne build on Android device) . No effect. The findAndWait keeps waiting. Tried this at the NetworkManager and at the request level.
In handleException for NetworkManager, added code below (based on https://github.com/codenameone/CodenameOne/issues/733). It compiled and ran but findAndWait kept waiting.
...
ANSWER
Answered 2020-May-07 at 12:43I have just added timeout and read timeout support that can be set on both the XFClient class and the XFQuery class. If both XFClient and XFQuery for a particular query specify a timeout, then the XFQuery timeout will take precedent.
This update will be in Codename One settings soon, but you can download this new build directly right now from here
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xataface
Read "Creating the Application" section of this page
Read the Getting Started Tutorial
Problems? Read the Troubleshooting page
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page