Bitcoin Forum
April 25, 2018, 03:32:32 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Long Poll client - how to implement?  (Read 1608 times)
NetTecture
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
July 10, 2011, 08:26:30 PM
 #1

Hello,

simple problem. I work on a mining pool / proxy combo for my own use.

I now start dealing with long polling and id just will not work.

Why? Wink

I am submitting the same url I am getting and submitting work to, just as a GET instead of a POST, but I pretty much always get a 400 / Bad Request back.

I am having the following headers:

Content-Type: application/json-rpc
Authorization: Basic TmV0VGVjdHVyZV90dG86MjEyMzBhczIzOTg5MA==
Host: us.btcguild.com:8332

The non-LP part works fine, passwords etc. are all set.

What am I overlooking? Possibly something stupid, but I just can not figure out what Wink

Regards
1524670352
Hero Member
*
Offline Offline

Posts: 1524670352

View Profile Personal Message (Offline)

Ignore
1524670352
Reply with quote  #2

1524670352
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524670352
Hero Member
*
Offline Offline

Posts: 1524670352

View Profile Personal Message (Offline)

Ignore
1524670352
Reply with quote  #2

1524670352
Report to moderator
linkme
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
July 12, 2011, 02:57:55 AM
 #2

need more info..

What miner you are using ?

Did u setup your own pool, or are you mining at btcguild ?


█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 

█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
         ▄▄▀▀▀▄▄
      ▄▀▀       ▀▀▄
      █           █
      █           █
      █           █
      █           █
  ▄▄▀▀ ▀▀▄▄   ▄▄▀▀ ▀▀▄▄
█▀         ▀█▀         ▀█
█           █           █
█           █           █
█           █           █
▀▄▄       ▄▄▀▄▄       ▄▄▀
   ▀▀▄▄▄▀▀     ▀▀▄▄▄▀▀
UBONIUM

  █
  █
  █
  █
  █
  █
  █
  █
  █
  █
  █
   █
▄▄█████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████▀▀▀█████▄
▄████████████▀▀     ██████▄
█████████▀▀   ▄▄▀   ███████
██████▄    ▄▄█▀    ████████
█████████▄██▀      ████████
▀██████████▄▄    ████████▀
▀████████▄█████▄████████▀
▀█████████████████████▀
▀█████████████████▀
▀▀█████████▀▀
  Join Our Telegram Community
    UBOCOIN PRE-ICO
M ▄▄▄ ▄▄▄
a r c h   1st

  █
  █
  █
  █
  █
  █
  █
  █
  █
  █
  █
   █

Hero/Legendary Member

█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
█      
.WHITEPAPER. .ANN THREAD.
⚫  ETCF MARKET™   ⚫  UBOPAY™   ⚫  UBOBANK™   ⚫  UBOCARD™

█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
█  █
DrHaribo
Legendary
*
Offline Offline

Activity: 2394
Merit: 1017


Bitminter.com Operator


View Profile WWW
July 14, 2011, 02:00:26 PM
 #3

Are you sending it to the same URL as the regular getwork requests?

Look at the X-Long-Polling header in the responses to your regular getwork requests. They tell you where to send a long polling request, which may be a different URL.

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
JoelKatz
Legendary
*
Offline Offline

Activity: 1582
Merit: 1003


Democracy is vulnerable to a 51% attack.


View Profile WWW
July 14, 2011, 02:00:30 PM
 #4

You don't show the 'GET' line. But if it's anything other than "GET /LP HTTP/1.1", that's your problem.

For the reason the post above me explains -- see the "X-Long-Polling: /LP" header in the error reply.

By the way, you pasted your real Authorization. You better change the password for that worker before evil malicious bastards mine for you.




I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!